OSDN Git Service

* java/lang/ThreadGroup.java (uncaughtException): Print message to
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Dec 2001 23:32:24 +0000 (23:32 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Dec 2001 23:32:24 +0000 (23:32 +0000)
System.err.  Required by spec.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47779 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 067b301..800c337 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 bdf37f9..0728413 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");
          }