From e2df9de0de998366dd70ce62c97751a5a470c946 Mon Sep 17 00:00:00 2001 From: mwebster Date: Tue, 25 Jul 2006 15:38:26 +0000 Subject: [PATCH] Bug 150487 "Tracing and Logging Framework" (handle missing org.apache.commons.logging on JSE-1.3/1.4) --- .../testsrc/org/aspectj/tools/ajc/AjcTestCase.java | 5 +++++ weaver/src/org/aspectj/weaver/tools/TraceFactory.java | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java index a2e93ede7..98428a326 100644 --- a/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java +++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java @@ -668,7 +668,12 @@ public class AjcTestCase extends TestCase { Constructor constructor = loaderClazz.getConstructor(parameterTypes); loader = (URLClassLoader)constructor.newInstance(parameters); } + catch (InvocationTargetException ex) { + ex.printStackTrace(); + fail("Cannot create weaving class loader: " + ex.getCause()); + } catch (Exception ex) { + ex.printStackTrace(); fail("Cannot create weaving class loader: " + ex.toString()); } diff --git a/weaver/src/org/aspectj/weaver/tools/TraceFactory.java b/weaver/src/org/aspectj/weaver/tools/TraceFactory.java index d77b7e1ba..553d4f0eb 100644 --- a/weaver/src/org/aspectj/weaver/tools/TraceFactory.java +++ b/weaver/src/org/aspectj/weaver/tools/TraceFactory.java @@ -34,7 +34,8 @@ public class TraceFactory { instance = (TraceFactory)factoryClass.newInstance(); } } - catch (Exception ex) { + catch (Throwable th) { +// th.printStackTrace(); } // System.out.println("TraceFactory.() instance=" + instance); } -- 2.39.5