2005-04-01 Jeroen Frijters <jeroen@frijters.net>
authorJeroen Frijters <jeroen@frijters.net>
Fri, 1 Apr 2005 17:39:13 +0000 (17:39 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Fri, 1 Apr 2005 17:39:13 +0000 (17:39 +0000)
* java/util/Timer.java
(run): Stop the queue if a task throws an exception.

From-SVN: r97411

libjava/ChangeLog
libjava/java/util/Timer.java

index 4d1673d..bdd1246 100644 (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.
index 3c7223b..364d531 100644 (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();
                }
            }