]> source.dussan.org Git - aspectj.git/commitdiff
bug 128650: comment 16: better at tidying up
authoraclement <aclement>
Tue, 14 Mar 2006 15:57:27 +0000 (15:57 +0000)
committeraclement <aclement>
Tue, 14 Mar 2006 15:57:27 +0000 (15:57 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/IncrementalStateManager.java

index 9ea120192b813492b4a9b4224f0c4780eb90725a..b9f2c966243b8aa11046430fd0fa1bef8a8b3078 100644 (file)
@@ -17,6 +17,8 @@ import java.util.Hashtable;
 import java.util.Iterator;
 import java.util.Set;
 
+import org.aspectj.asm.AsmManager;
+
 
 /**
  * Central point for all things incremental...
@@ -45,7 +47,12 @@ public class IncrementalStateManager {
        }
        
        public static void clearIncrementalStates() {
+               for (Iterator iter = incrementalStates.values().iterator(); iter.hasNext();) {
+                       AjState element = (AjState) iter.next();
+                       element.wipeAllKnowledge();
+               }
                incrementalStates.clear();
+               AsmManager.getDefault().createNewASM(); // forget what you know...
        }
        
        public static Set getConfigFilesKnown() {