[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: Patch: java/lang/Thread.java
From: |
Jeroen Frijters |
Subject: |
FYI: Patch: java/lang/Thread.java |
Date: |
Mon, 2 Feb 2004 11:31:24 +0100 |
Hi,
I committed a patch to allow the daemon state of dead threads to be
changed. The documentation is a little ambiguous on this, but the Sun
JDK allows it and there is no harm in it.
Regards,
Jeroen
2004-02-02 Jeroen Frijters <address@hidden>
* java/lang/Thread.java (setDaemon): Allow daemon state to be
changed for dead threads.
Index: java/lang/Thread.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/Thread.java,v
retrieving revision 1.3
diff -u -r1.3 Thread.java
--- java/lang/Thread.java 28 Jan 2004 19:38:24 -0000 1.3
+++ java/lang/Thread.java 2 Feb 2004 10:28:28 -0000
@@ -633,7 +633,7 @@
*/
public final synchronized void setDaemon(boolean daemon)
{
- if (vmThread != null || group == null)
+ if (vmThread != null)
throw new IllegalThreadStateException();
checkAccess();
this.daemon = daemon;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: Patch: java/lang/Thread.java,
Jeroen Frijters <=