This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: Patch: java.util.Timer
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Thu, 18 Sep 2003 15:12:36 +0200
- Subject: FYI: Patch: java.util.Timer
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
I wrote a little patch to bring java.util.Timer in line with Sun's
version. Patch appended.
Michael
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/aa9EWSOgCCdjSDsRAvCrAJ9quOA69k3ha+BMrupPjT1f6rabcgCfWfDZ
ub8TiR9R3HGtth6MSSWxk7M=
=0Q7J
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2153
diff -u -b -B -r1.2153 ChangeLog
--- ChangeLog 18 Sep 2003 11:32:46 -0000 1.2153
+++ ChangeLog 18 Sep 2003 13:06:30 -0000
@@ -1,5 +1,9 @@
2003-09-18 Michael Koch <konqueror@gmx.de>
+ * java/util/Timer.java (finalize): Added "throws Throwable".
+
+2003-09-18 Michael Koch <konqueror@gmx.de>
+
* java/net/DatagramSocket.java
(ch): Removed.
(receive): Use getChannel() instead of ch.
Index: java/util/Timer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/Timer.java,v
retrieving revision 1.7
diff -u -b -B -r1.7 Timer.java
--- java/util/Timer.java 3 Mar 2002 11:02:04 -0000 1.7
+++ java/util/Timer.java 18 Sep 2003 13:06:30 -0000
@@ -601,7 +601,7 @@
* Tells the scheduler that the Timer task died
* so there will be no more new tasks scheduled.
*/
- protected void finalize()
+ protected void finalize() throws Throwable
{
queue.setNullOnEmpty(true);
}