Commit e52335a9 by Bryce McKinlay

ExceptionInInitializerError.java (printStackTrace): Only try to print the…

ExceptionInInitializerError.java (printStackTrace): Only try to print the subordinate stack trace if "exception" is set.

	* 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
parent 456c0b60
...@@ -51,7 +51,7 @@ public class ExceptionInInitializerError extends LinkageError ...@@ -51,7 +51,7 @@ public class ExceptionInInitializerError extends LinkageError
{ {
if (exception != null) if (exception != null)
{ {
System.err.print (this.getClass() + ": "); System.err.print (this.getClass().getName() + ": ");
exception.printStackTrace (); exception.printStackTrace ();
} }
else else
...@@ -62,7 +62,7 @@ public class ExceptionInInitializerError extends LinkageError ...@@ -62,7 +62,7 @@ public class ExceptionInInitializerError extends LinkageError
{ {
if (exception != null) if (exception != null)
{ {
ps.print (this.getClass() + ": "); ps.print (this.getClass().getName() + ": ");
exception.printStackTrace (ps); exception.printStackTrace (ps);
} }
else else
...@@ -73,7 +73,7 @@ public class ExceptionInInitializerError extends LinkageError ...@@ -73,7 +73,7 @@ public class ExceptionInInitializerError extends LinkageError
{ {
if (exception != null) if (exception != null)
{ {
pw.print (this.getClass() + ": "); pw.print (this.getClass().getName() + ": ");
exception.printStackTrace (pw); exception.printStackTrace (pw);
} }
else else
......
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