aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormwebster <mwebster>2006-07-25 15:38:26 +0000
committermwebster <mwebster>2006-07-25 15:38:26 +0000
commite2df9de0de998366dd70ce62c97751a5a470c946 (patch)
treea6f39ed6a03ea47b0f3008b83fe46abd48227ecc
parent3aeda831002fa79227bf583322777525f0ab2309 (diff)
downloadaspectj-e2df9de0de998366dd70ce62c97751a5a470c946.tar.gz
aspectj-e2df9de0de998366dd70ce62c97751a5a470c946.zip
Bug 150487 "Tracing and Logging Framework" (handle missing org.apache.commons.logging on JSE-1.3/1.4)
-rw-r--r--org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java5
-rw-r--r--weaver/src/org/aspectj/weaver/tools/TraceFactory.java3
2 files changed, 7 insertions, 1 deletions
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.<clinit>() instance=" + instance);
}