]> source.dussan.org Git - aspectj.git/commitdiff
Bug 158205 "NullPointerException when weaving with bootstrap agent" (modified patch...
authormwebster <mwebster>
Mon, 2 Oct 2006 09:58:14 +0000 (09:58 +0000)
committermwebster <mwebster>
Mon, 2 Oct 2006 09:58:14 +0000 (09:58 +0000)
loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java

index e3ff1c49960a5e739a59b08bc2e7e47e1b7324bb..e9d46182f22c4668b371b61be87f802201ec7df9 100644 (file)
@@ -179,7 +179,7 @@ public class ClassLoaderWeavingAdaptor extends WeavingAdaptor {
             //TODO av underoptimized: we will parse each XML once per CL that see it
 
             //TODO av dev mode needed ? TBD -Daj5.def=...
-            if (ClassLoader.getSystemClassLoader().equals(loader)) {
+            if (loader.equals(ClassLoader.getSystemClassLoader())) {
                 String file = System.getProperty("aj5.def", null);
                 if (file != null) {
                     info("using (-Daj5.def) " + file);