diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2006-05-01 21:45:41 +0000 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2006-05-01 21:45:41 +0000 |
commit | 480ccb4bfcc622c1ce320c20ce992188187f7573 (patch) | |
tree | aebfd0e230d0370ec1ac1a9b1a99b478abdc6854 /java/lang/Thread.java | |
parent | 4d80ae24073737202d4c51bf9efd2466fea8696d (diff) | |
download | classpath-480ccb4bfcc622c1ce320c20ce992188187f7573.tar.gz |
2006-05-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
* Merge HEAD-->generics-branch for the period
2006-04-13 to 2006-05-01.
Diffstat (limited to 'java/lang/Thread.java')
-rw-r--r-- | java/lang/Thread.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/java/lang/Thread.java b/java/lang/Thread.java index 99c8381aa..55d134fe6 100644 --- a/java/lang/Thread.java +++ b/java/lang/Thread.java @@ -1065,7 +1065,9 @@ public class Thread implements Runnable * <li>If this thread has its own handler, this is returned.</li> * <li>If not, then the handler of the thread's <code>ThreadGroup</code> * object is returned.</li> - * <li>If both are unavailable, then <code>null</code> is returned.</li> + * <li>If both are unavailable, then <code>null</code> is returned + * (which can only happen when the thread was terminated since + * then it won't have an associated thread group anymore).</li> * </ul> * * @return the appropriate <code>UncaughtExceptionHandler</code> or @@ -1074,7 +1076,7 @@ public class Thread implements Runnable */ public UncaughtExceptionHandler getUncaughtExceptionHandler() { - return exceptionHandler; + return exceptionHandler != null ? exceptionHandler : group; } /** |