ThreadGroup.java (uncaughtException): Print thread name with stack dump.
authorBryce McKinlay <bryce@albatross.co.nz>
Wed, 25 Oct 2000 08:11:47 +0000 (08:11 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Wed, 25 Oct 2000 08:11:47 +0000 (09:11 +0100)
        * java/lang/ThreadGroup.java (uncaughtException): Print thread name
        with stack dump.

From-SVN: r37047

libjava/ChangeLog
libjava/java/lang/ThreadGroup.java

index 159789a5edad1bdd938df2e6522f142d37bc546b..2816d01c6ccf056f7315f16cda205dee3a34d0dd 100644 (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>
 
 
        * 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.
index 52c69525098b3d779b3d592d6ce6861e5a9441e2..cf1e7171ccbc3be37a0806ed47be7a4a2d5d7d78 100644 (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;
       }