Commit f68d5b0d by Jeroen Frijters Committed by Michael Koch

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
parent 77c10b31
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> 2005-03-31 Thomas Fitzsimmons <fitzsim@redhat.com>
* javax/swing/text/JTextComponent.java (viewToModel): New method. * javax/swing/text/JTextComponent.java (viewToModel): New method.
......
...@@ -350,8 +350,9 @@ public class Timer ...@@ -350,8 +350,9 @@ public class Timer
throw death; throw death;
} }
catch (Throwable t) catch (Throwable t)
{ {
/* ignore all errors */ // If an exception escapes, the Timer becomes invalid.
queue.stop();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment