aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@gcc.gnu.org>2001-03-12 07:47:13 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2001-03-12 07:47:13 +0000
commite52335a982b61f4b27615423edba65f74eefb282 (patch)
tree4adc074f858e1ee279f8cee81385cf6844d18f09 /libjava
parent456c0b60ad23e3d73e4b5cbc6c1f6113fb792534 (diff)
downloadgcc-e52335a982b61f4b27615423edba65f74eefb282.zip
gcc-e52335a982b61f4b27615423edba65f74eefb282.tar.gz
gcc-e52335a982b61f4b27615423edba65f74eefb282.tar.bz2
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
Diffstat (limited to 'libjava')
-rw-r--r--libjava/java/lang/ExceptionInInitializerError.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/java/lang/ExceptionInInitializerError.java b/libjava/java/lang/ExceptionInInitializerError.java
index 95b4311..d43a859 100644
--- a/libjava/java/lang/ExceptionInInitializerError.java
+++ b/libjava/java/lang/ExceptionInInitializerError.java
@@ -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