From e52335a982b61f4b27615423edba65f74eefb282 Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Mon, 12 Mar 2001 07:47:13 +0000 Subject: [PATCH] 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 --- libjava/java/lang/ExceptionInInitializerError.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libjava/java/lang/ExceptionInInitializerError.java b/libjava/java/lang/ExceptionInInitializerError.java index 95b4311c174..d43a8599127 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 -- 2.30.2