From a2541b903640c8d4e5c20376bd75f2889e593a35 Mon Sep 17 00:00:00 2001 From: aclement Date: Sat, 3 May 2008 02:55:46 +0000 Subject: [PATCH] 210470: remove thread reference stored in CompilationAndWeavingContext static - it anchors the context class loader --- .../bridge/context/CompilationAndWeavingContext.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.39.5