2005-04-01 Jeroen Frijters <jeroen@frijters.net>

* java/util/Timer.java
	(run): Stop the queue if a task throws an exception.

From-SVN: r97411
This commit is contained in:
Jeroen Frijters 2005-04-01 17:39:13 +00:00 committed by Michael Koch
parent 77c10b31ec
commit f68d5b0d04
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-04-01 Jeroen Frijters <jeroen@frijters.net>
* java/util/Timer.java
(run): Stop the queue if a task throws an exception.
2005-03-31 Thomas Fitzsimmons <fitzsim@redhat.com>
* javax/swing/text/JTextComponent.java (viewToModel): New method.

View File

@ -350,8 +350,9 @@ public class Timer
throw death;
}
catch (Throwable t)
{
/* ignore all errors */
{
// If an exception escapes, the Timer becomes invalid.
queue.stop();
}
}