The attached patch fixes the initialization of the thread IDs
in java.lang.Thread so that it starts at 1.  0 is not a valid
thread ID, and was rightly being thrown out by the managment stuff.

Changelog:

2006-07-01  Andrew John Hughes  <[EMAIL PROTECTED]>

        * java/lang/Thread.java:
        Make thread IDs start from 1.

-- 
Andrew :-)

Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

If you use Microsoft Office, support movement towards the end of vendor lock-in:
http://opendocumentfellowship.org/petition/

"Value your freedom, or you will lose it, teaches history. 
`Don't bother us with politics' respond those who don't want to learn." 
-- Richard Stallman

Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }
Index: java/lang/Thread.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/Thread.java,v
retrieving revision 1.29
diff -u -3 -p -u -r1.29 Thread.java
--- java/lang/Thread.java       29 Jun 2006 21:00:28 -0000      1.29
+++ java/lang/Thread.java       1 Jul 2006 11:57:09 -0000
@@ -148,7 +148,7 @@ public class Thread implements Runnable
   private static int numAnonymousThreadsCreated;
   
   /** The next thread ID to use.  */
-  private static long nextThreadId;
+  private static long nextThreadId = 1;
 
   /** The default exception handler.  */
   private static UncaughtExceptionHandler defaultHandler;

Attachment: signature.asc
Description: Digital signature

Reply via email to