diff options
author | jfrijters <jfrijters> | 2014-10-29 09:13:36 +0300 |
---|---|---|
committer | jfrijters <jfrijters> | 2014-10-29 09:13:36 +0300 |
commit | ee22a4d1cb6821c74a38c9f996d3e81851f9f919 (patch) | |
tree | 55567e532b8c0d1a2f0165d42a1cfbb6d9be8723 /openjdk/java | |
parent | 945263dd090d1925921ba12dd8c5d70b1ae7caf9 (diff) |
Merged fix from 8u11.
Diffstat (limited to 'openjdk/java')
-rw-r--r-- | openjdk/java/lang/Thread.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openjdk/java/lang/Thread.java b/openjdk/java/lang/Thread.java index 7ab53c76..e61147e3 100644 --- a/openjdk/java/lang/Thread.java +++ b/openjdk/java/lang/Thread.java @@ -477,6 +477,8 @@ class Thread implements Runnable { throw new NullPointerException("name cannot be null"); } + this.name = name.toCharArray(); + Thread parent = currentThread(); SecurityManager security = System.getSecurityManager(); if (g == null) { @@ -513,7 +515,6 @@ class Thread implements Runnable { this.group = g; this.daemon = parent.isDaemon(); this.priority = parent.getPriority(); - this.name = name.toCharArray(); if (isCCLOverridden(parent)) this.contextClassLoader = parent.getContextClassLoader(); else |