]> source.dussan.org Git - aspectj.git/commitdiff
210470: preventing weaver leaks: use a weak classloader ref
authoraclement <aclement>
Tue, 27 May 2008 18:53:03 +0000 (18:53 +0000)
committeraclement <aclement>
Tue, 27 May 2008 18:53:03 +0000 (18:53 +0000)
loadtime/src/org/aspectj/weaver/loadtime/WeavingURLClassLoader.java

index 01d3c6d9098fff723fcbb74c59fd3f399f3bf6e7..10516e46ed1131e40e6dbb7e1114bcb72acba028 100644 (file)
@@ -145,6 +145,7 @@ public class WeavingURLClassLoader extends ExtensibleURLClassLoader implements W
 
                        /* Ensures consistent LTW messages for testing */
                        public String getClassLoaderName() {
+                               ClassLoader loader = getClassLoader();
                                return loader.getClass().getName();
                        }