Proxy.java, [...]: Don't catch java.lang.ThreadDeath.
2005-02-22 Jeroen Frijters <jeroen@frijters.net> * java/lang/reflect/Proxy.java, java/net/URL.java, java/security/SecureRandom.java, java/util/Timer.java, java/util/prefs/AbstractPreferences.java: Don't catch java.lang.ThreadDeath. From-SVN: r95415
This commit is contained in:
parent
19b3ffbcaf
commit
b5abfc2344
6 changed files with 27 additions and 2 deletions
|
@ -343,6 +343,12 @@ public class Timer
|
|||
{
|
||||
task.run();
|
||||
}
|
||||
catch (ThreadDeath death)
|
||||
{
|
||||
// If an exception escapes, the Timer becomes invalid.
|
||||
queue.stop();
|
||||
throw death;
|
||||
}
|
||||
catch (Throwable t)
|
||||
{
|
||||
/* ignore all errors */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue