From: mwebster Date: Tue, 25 Jul 2006 15:38:26 +0000 (+0000) Subject: Bug 150487 "Tracing and Logging Framework" (handle missing org.apache.commons.logging... X-Git-Tag: PRE_PIPELINE~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e2df9de0de998366dd70ce62c97751a5a470c946;p=aspectj.git Bug 150487 "Tracing and Logging Framework" (handle missing org.apache.commons.logging on JSE-1.3/1.4) --- 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); }