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
This commit is contained in:
parent
456c0b60ad
commit
e52335a982
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue