]> source.dussan.org Git - aspectj.git/commitdiff
210470: remove thread reference stored in CompilationAndWeavingContext static - it...
authoraclement <aclement>
Sat, 3 May 2008 02:55:46 +0000 (02:55 +0000)
committeraclement <aclement>
Sat, 3 May 2008 02:55:46 +0000 (02:55 +0000)
bridge/src/org/aspectj/bridge/context/CompilationAndWeavingContext.java

index e3a0b7b7fe19f093359fe113d1693f2cc16e9918..9f546b1316478d99733a74500f69c416c87ae412 100644 (file)
@@ -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;