You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mnemonic.apache.org by ch...@apache.org on 2022/02/25 20:49:02 UTC
[mnemonic] branch master updated: MNEMONIC-725:Keep thread information when get InterruptedException
This is an automated email from the ASF dual-hosted git repository.
chenyang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mnemonic.git
The following commit(s) were added to refs/heads/master by this push:
new f73aab2 MNEMONIC-725:Keep thread information when get InterruptedException
new fed2766 Merge pull request #270 from lcy0816/issue-725
f73aab2 is described below
commit f73aab2855314b97367b55f450ed8feb8a31d37c
Author: chenyang <ch...@apache.org>
AuthorDate: Fri Feb 25 12:38:25 2022 -0800
MNEMONIC-725:Keep thread information when get InterruptedException
Signed-off-by: chenyang <ch...@apache.org>
---
mnemonic-core/src/main/java/org/apache/mnemonic/Utils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mnemonic-core/src/main/java/org/apache/mnemonic/Utils.java b/mnemonic-core/src/main/java/org/apache/mnemonic/Utils.java
index 53dc03c..b42bb7b 100644
--- a/mnemonic-core/src/main/java/org/apache/mnemonic/Utils.java
+++ b/mnemonic-core/src/main/java/org/apache/mnemonic/Utils.java
@@ -214,7 +214,7 @@ public class Utils {
System.runFinalization();
Thread.sleep(timeout);
} catch (InterruptedException ex) {
- ex.printStackTrace();
+ Thread.currentThread().interrupt();
}
}