aboutsummaryrefslogtreecommitdiffstats
path: root/loadtime
diff options
context:
space:
mode:
authoraclement <aclement>2008-05-03 02:55:26 +0000
committeraclement <aclement>2008-05-03 02:55:26 +0000
commit45d16bebca01d960ad556cac7c762578badea50f (patch)
tree03c5e52041734eace6631cdcca23ec7fe729a611 /loadtime
parent6ac970dd10aaa0ce4f65e59697f31137b1adc8cd (diff)
downloadaspectj-45d16bebca01d960ad556cac7c762578badea50f.tar.gz
aspectj-45d16bebca01d960ad556cac7c762578badea50f.zip
210470: remove thread reference stored in CompilationAndWeavingContext static - it anchors the context class loader
Diffstat (limited to 'loadtime')
-rw-r--r--loadtime/src/org/aspectj/weaver/loadtime/Aj.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/loadtime/src/org/aspectj/weaver/loadtime/Aj.java b/loadtime/src/org/aspectj/weaver/loadtime/Aj.java
index b810a9078..732bd534d 100644
--- a/loadtime/src/org/aspectj/weaver/loadtime/Aj.java
+++ b/loadtime/src/org/aspectj/weaver/loadtime/Aj.java
@@ -14,6 +14,7 @@ package org.aspectj.weaver.loadtime;
import java.util.Map;
import java.util.WeakHashMap;
+import org.aspectj.bridge.context.CompilationAndWeavingContext;
import org.aspectj.weaver.Dump;
import org.aspectj.weaver.tools.Trace;
import org.aspectj.weaver.tools.TraceFactory;
@@ -89,6 +90,8 @@ public class Aj implements ClassPreProcessor {
// would make sense at least in test f.e. see TestHelper.handleMessage()
if (trace.isTraceEnabled()) trace.exit("preProcess",th);
return bytes;
+ } finally {
+ CompilationAndWeavingContext.resetForThread(); // recording the thread will anchor the classloader
}
}