FYI: java.util.Timer patch
Mark Wielaard
mark@klomp.org
Sun Mar 3 15:38:00 GMT 2002
Hi,
I am checking in this fix which prevents the Timer to throw a
NullPointerException after being canceled as pointed out by Shuhua Zhang
in a private mail.
2002-03-03 Mark Wielaard <mark@klomp.org>
* java/util/Timer (TaskQueue.stop): set elements to zero.
Cheers,
Mark
-------------- next part --------------
Index: java/util/Timer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/Timer.java,v
retrieving revision 1.6
diff -u -r1.6 Timer.java
--- Timer.java 2002/01/22 22:40:39 1.6
+++ Timer.java 2002/03/03 10:58:30
@@ -293,6 +293,7 @@
public synchronized void stop()
{
this.heap = null;
+ this.elements = 0;
this.notify();
}
More information about the Java-patches
mailing list