From 6f0e2f06ac3e0d65fc61e83816d84ba15282ebd5 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Thu, 2 Aug 2001 12:19:35 +0000 Subject: [PATCH] BuildExceptions were not printing their own stack trace. They do this now but it does make the output in the event of a failure a bit noisier git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269438 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/BuildException.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/BuildException.java b/src/main/org/apache/tools/ant/BuildException.java index efbda7476..08b269b1b 100644 --- a/src/main/org/apache/tools/ant/BuildException.java +++ b/src/main/org/apache/tools/ant/BuildException.java @@ -173,7 +173,7 @@ public class BuildException extends RuntimeException { public void printStackTrace(PrintStream ps) { synchronized (ps) { - ps.println(this); + super.printStackTrace(ps); if (cause != null) { ps.println("--- Nested Exception ---"); cause.printStackTrace(ps); @@ -183,7 +183,7 @@ public class BuildException extends RuntimeException { public void printStackTrace(PrintWriter pw) { synchronized (pw) { - pw.println(this); + super.printStackTrace(pw); if (cause != null) { pw.println("--- Nested Exception ---"); cause.printStackTrace(pw);