diff options
author | aclement <aclement> | 2008-05-03 02:55:46 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-05-03 02:55:46 +0000 |
commit | a2541b903640c8d4e5c20376bd75f2889e593a35 (patch) | |
tree | e496340e9d6819fa473b52b1b5b12a83cb8416ae /bridge | |
parent | 45d16bebca01d960ad556cac7c762578badea50f (diff) | |
download | aspectj-a2541b903640c8d4e5c20376bd75f2889e593a35.tar.gz aspectj-a2541b903640c8d4e5c20376bd75f2889e593a35.zip |
210470: remove thread reference stored in CompilationAndWeavingContext static - it anchors the context class loader
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/src/org/aspectj/bridge/context/CompilationAndWeavingContext.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bridge/src/org/aspectj/bridge/context/CompilationAndWeavingContext.java b/bridge/src/org/aspectj/bridge/context/CompilationAndWeavingContext.java index e3a0b7b7f..9f546b131 100644 --- a/bridge/src/org/aspectj/bridge/context/CompilationAndWeavingContext.java +++ b/bridge/src/org/aspectj/bridge/context/CompilationAndWeavingContext.java @@ -191,6 +191,14 @@ public class CompilationAndWeavingContext { } } + /** + * Forget about the context for the current thread + */ + public static void resetForThread() { + if (!multiThreaded) return; + contextMap.remove(Thread.currentThread()); + } + private static Stack getContextStack() { if (!multiThreaded) { return contextStack; |