ThreadGroup.java (uncaughtException): Print thread name with stack dump.

* java/lang/ThreadGroup.java (uncaughtException): Print thread name
        with stack dump.

From-SVN: r37047
This commit is contained in:
Bryce McKinlay 2000-10-25 08:11:47 +00:00 committed by Bryce McKinlay
parent 589cb9f16e
commit ce2ab205ae
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,9 @@
2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
* java/util/EventObject.java: Merged from classpath.
* java/lang/ThreadGroup.java (uncaughtException): Print thread name
with stack dump.
2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
@ -263,7 +266,6 @@
* gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
>>>>>>> 1.515
2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
* prims.cc (_Jv_argv, _Jv_argc): New fields.

View File

@ -500,6 +500,8 @@ public class ThreadGroup
parent.uncaughtException (thread, t);
else if (! (t instanceof ThreadDeath))
{
if (thread != null)
System.out.print("Exception in thread \"" + thread.getName() + "\" ");
t.printStackTrace();
had_uncaught_exception = true;
}