diff options
author | aclement <aclement> | 2008-05-03 02:55:26 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-05-03 02:55:26 +0000 |
commit | 45d16bebca01d960ad556cac7c762578badea50f (patch) | |
tree | 03c5e52041734eace6631cdcca23ec7fe729a611 /loadtime | |
parent | 6ac970dd10aaa0ce4f65e59697f31137b1adc8cd (diff) | |
download | aspectj-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.java | 3 |
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 } } |