From: aclement Date: Sat, 3 May 2008 02:55:46 +0000 (+0000) Subject: 210470: remove thread reference stored in CompilationAndWeavingContext static - it... X-Git-Tag: Root_refactoring~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a2541b903640c8d4e5c20376bd75f2889e593a35;p=aspectj.git 210470: remove thread reference stored in CompilationAndWeavingContext static - it anchors the context class loader --- 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;