From 788899b050c9793be985d1721a8159092bcd3517 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 27 May 2008 18:53:03 +0000 Subject: [PATCH] 210470: preventing weaver leaks: use a weak classloader ref --- .../src/org/aspectj/weaver/loadtime/WeavingURLClassLoader.java | 1 + 1 file changed, 1 insertion(+) diff --git a/loadtime/src/org/aspectj/weaver/loadtime/WeavingURLClassLoader.java b/loadtime/src/org/aspectj/weaver/loadtime/WeavingURLClassLoader.java index 01d3c6d90..10516e46e 100644 --- a/loadtime/src/org/aspectj/weaver/loadtime/WeavingURLClassLoader.java +++ b/loadtime/src/org/aspectj/weaver/loadtime/WeavingURLClassLoader.java @@ -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(); } -- 2.39.5