From e0ecf9f86727f0cc326d54da923a397b9be7f41b Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 14 Mar 2006 15:57:27 +0000 Subject: [PATCH] bug 128650: comment 16: better at tidying up --- .../internal/core/builder/IncrementalStateManager.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/IncrementalStateManager.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/IncrementalStateManager.java index 9ea120192..b9f2c9662 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/IncrementalStateManager.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/IncrementalStateManager.java @@ -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() { -- 2.39.5