summaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-07 01:12:27 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-07 01:12:27 +0000
commit74711ad99a9adf667ada63802a775559f59aab25 (patch)
tree1c5031ee634a4c7f86373e5212aa17fb3cb62f86 /libjava/java
parenta1e0d2b2d4964597759ff23711592494ba376430 (diff)
downloadgcc-74711ad99a9adf667ada63802a775559f59aab25.tar.gz
* java/lang/Thread.java (Thread): Check for null "name" from
start of private constructor, not after calling the private constructor. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70216 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/lang/Thread.java13
1 files changed, 4 insertions, 9 deletions
diff --git a/libjava/java/lang/Thread.java b/libjava/java/lang/Thread.java
index 32f7d174580..64498b23ba4 100644
--- a/libjava/java/lang/Thread.java
+++ b/libjava/java/lang/Thread.java
@@ -614,11 +614,6 @@ public class Thread implements Runnable
public Thread (ThreadGroup g, Runnable r, String n)
{
this (currentThread (), g, r, n);
-
- // The Class Libraries book says ``threadName cannot be null''. I
- // take this to mean NullPointerException.
- if (n == null)
- throw new NullPointerException ();
}
/**
@@ -645,15 +640,15 @@ public class Thread implements Runnable
{
// Just ignore stackSize for now.
this (currentThread (), g, r, n);
+ }
+ private Thread (Thread current, ThreadGroup g, Runnable r, String n)
+ {
// The Class Libraries book says ``threadName cannot be null''. I
// take this to mean NullPointerException.
if (n == null)
throw new NullPointerException ();
- }
-
- private Thread (Thread current, ThreadGroup g, Runnable r, String n)
- {
+
if (g == null)
{
// If CURRENT is null, then we are bootstrapping the first thread.