[Patch] java.util.Timer merge
Michael Koch
konqueror@gmx.de
Fri Apr 1 16:25:00 GMT 2005
Hi list,
I put the attached patch from classpath into gcc to merg
java.util.Timer.
Ok to commit to trunk and 4.0?
Michael
2005-04-01 Jeroen Frijters <jeroen@frijters.net>
* java/util/Timer.java
(run): Stop the queue if a task throws an exception.
-------------- next part --------------
Index: java/util/Timer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/Timer.java,v
retrieving revision 1.11
diff -u -r1.11 Timer.java
--- java/util/Timer.java 22 Feb 2005 21:11:29 -0000 1.11
+++ java/util/Timer.java 1 Apr 2005 16:21:43 -0000
@@ -350,8 +350,9 @@
throw death;
}
catch (Throwable t)
- {
- /* ignore all errors */
+ {
+ // If an exception escapes, the Timer becomes invalid.
+ queue.stop();
}
}
More information about the Java-patches
mailing list