Commit ce2ab205 by Bryce McKinlay Committed by Bryce McKinlay

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

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

From-SVN: r37047
parent 589cb9f1
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
* java/util/EventObject.java: Merged from classpath. * 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> 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
* java/util/AbstractSet.java (equals): Re-installed original code. * java/util/AbstractSet.java (equals): Re-installed original code.
...@@ -263,7 +266,6 @@ ...@@ -263,7 +266,6 @@
* gnu/gcj/convert/natIconv.cc (init): Terminate buffer. * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
>>>>>>> 1.515
2000-10-02 Bryce McKinlay <bryce@albatross.co.nz> 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
* prims.cc (_Jv_argv, _Jv_argc): New fields. * prims.cc (_Jv_argv, _Jv_argc): New fields.
......
...@@ -500,6 +500,8 @@ public class ThreadGroup ...@@ -500,6 +500,8 @@ public class ThreadGroup
parent.uncaughtException (thread, t); parent.uncaughtException (thread, t);
else if (! (t instanceof ThreadDeath)) else if (! (t instanceof ThreadDeath))
{ {
if (thread != null)
System.out.print("Exception in thread \"" + thread.getName() + "\" ");
t.printStackTrace(); t.printStackTrace();
had_uncaught_exception = true; had_uncaught_exception = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment