]> gcc.gnu.org Git - gcc.git/commitdiff
ThreadGroup.java (uncaughtException): Print message to System.err.
authorTom Tromey <tromey@redhat.com>
Fri, 7 Dec 2001 23:32:24 +0000 (23:32 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 7 Dec 2001 23:32:24 +0000 (23:32 +0000)
* java/lang/ThreadGroup.java (uncaughtException): Print message to
System.err.  Required by spec.

From-SVN: r47779

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

index 067b30178fa2d9f99b9b03ae5f8c3ef94a29abf3..800c337b5a17e047a40e0a9783e8a27e44986cc5 100644 (file)
@@ -1,5 +1,8 @@
 2001-12-07  Tom Tromey  <tromey@redhat.com>
 
+       * java/lang/ThreadGroup.java (uncaughtException): Print message to
+       System.err.  Required by spec.
+
        * verify.cc (_Jv_BytecodeVerifier::branch_prepass): Set start_PC
        earlier, for error handling.
        (_Jv_BytecodeVerifier::note_branch_target): Fixed branch target
index bdf37f9ec9cd7961ef269e6e78bba2e05dfec8f0..072841342f1a83f5543b0abc619ff63ddc634ce5 100644 (file)
@@ -510,17 +510,18 @@ public class ThreadGroup
     else if (! (t instanceof ThreadDeath))
       {
         if (thread != null)
-          System.out.print("Exception in thread \"" + thread.getName() + "\" ");
+          System.err.print ("Exception in thread \""
+                           + thread.getName() + "\" ");
        try
          {
-           t.printStackTrace();
+           t.printStackTrace(System.err);
          }
        catch (Throwable x)
          {
            // This means that something is badly screwed up with the runtime,
            // or perhaps someone is messing with the SecurityManager. In any
            // case, try to deal with it gracefully.
-           System.out.println(t);
+           System.err.println(t);
            System.err.println("*** Got " + x.toString() + 
                               " while trying to print stack trace");
          }
This page took 0.065887 seconds and 5 git commands to generate.