]> source.dussan.org Git - aspectj.git/commitdiff
Bug 150487 "Tracing and Logging Framework" (handle missing org.apache.commons.logging...
authormwebster <mwebster>
Tue, 25 Jul 2006 15:38:26 +0000 (15:38 +0000)
committermwebster <mwebster>
Tue, 25 Jul 2006 15:38:26 +0000 (15:38 +0000)
org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java
weaver/src/org/aspectj/weaver/tools/TraceFactory.java

index a2e93ede782f4619450a1ad75afe286b669a9924..98428a326718e08ed291c90c8b3df28d96328a0e 100644 (file)
@@ -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());
                }
                
index d77b7e1ba0b458c5a0e2f0037bf3d0da9b992c39..553d4f0eb652a910526cf74a37578c193aa80800 100644 (file)
@@ -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);
     }