Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.9.0, 2.9.0.1
-
Fix Version/s: 2.9.2
-
Component/s: Runtime: Threads and Concurrency
-
Labels:None
-
Environment:All
-
Number of attachments :
Description
An interrupted method should throw an exception with the stack trace populated from the thread that is interrupted, such as:
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at test$1.run(test.java:5)
Our interrupted exceptions are currently generated in the context of the thread interrupting the others execution.
Perversely ThreadDeath errors reported by stopping (deprecated) a thread give a stack trace from the point the stop was called.