From e9930da203c42cac3b0e23f99b5b15cefbd97e92 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Wed, 8 Sep 2004 11:25:32 +0000 Subject: [PATCH] InstantiationException.getCause() not in jdk 1.3. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276833 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/launch/Launcher.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/main/org/apache/tools/ant/launch/Launcher.java b/src/main/org/apache/tools/ant/launch/Launcher.java index e0f620d58..e76a96758 100644 --- a/src/main/org/apache/tools/ant/launch/Launcher.java +++ b/src/main/org/apache/tools/ant/launch/Launcher.java @@ -222,19 +222,7 @@ public class Launcher { AntMain main = (AntMain) mainClass.newInstance(); main.startAnt(newArgs, null, null); } catch (Throwable t) { - if (t instanceof InstantiationException) { - t.printStackTrace(); - InstantiationException ie = (InstantiationException) t; - if (ie.getCause() == null) { - System.err.println("Instantiation Exception - root cause: " - + ie.getCause()); - } else { - System.err.println("Instantiation Exception - root cause:"); - ie.getCause().printStackTrace(); - } - } else { - t.printStackTrace(); - } + t.printStackTrace(); } } }