]> gcc.gnu.org Git - gcc.git/commitdiff
ExceptionInInitializerError.java (printStackTrace): Only try to print the subordinate...
authorBryce McKinlay <bryce@gcc.gnu.org>
Mon, 12 Mar 2001 07:47:13 +0000 (07:47 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Mon, 12 Mar 2001 07:47:13 +0000 (07:47 +0000)
* java/lang/ExceptionInInitializerError.java (printStackTrace):
Only try to print the subordinate stack trace if "exception" is set.
Print our class name first.

From-SVN: r40404

libjava/java/lang/ExceptionInInitializerError.java

index 95b4311c1742239aa8574426c703d78d49af6dc7..d43a85991271b91d022254410b4b5cda49e36813 100644 (file)
@@ -51,7 +51,7 @@ public class ExceptionInInitializerError extends LinkageError
   {
     if (exception != null)
       {
-       System.err.print (this.getClass() + ": ");
+       System.err.print (this.getClass().getName() + ": ");
        exception.printStackTrace ();
       }
     else
@@ -62,7 +62,7 @@ public class ExceptionInInitializerError extends LinkageError
   {
     if (exception != null)
       {
-       ps.print (this.getClass() + ": ");
+       ps.print (this.getClass().getName() + ": ");
        exception.printStackTrace (ps);
       }
     else
@@ -73,7 +73,7 @@ public class ExceptionInInitializerError extends LinkageError
   {
     if (exception != null)
       {
-       pw.print (this.getClass() + ": ");
+       pw.print (this.getClass().getName() + ": ");
        exception.printStackTrace (pw);
       }
     else
This page took 0.067299 seconds and 5 git commands to generate.