From: aclement Date: Wed, 15 Oct 2008 18:30:12 +0000 (+0000) Subject: reset the lists when a new asm created X-Git-Tag: PRE_251277~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=37eb8562e8705552b5a448cd3ba4f5a047aed172;p=aspectj.git reset the lists when a new asm created --- diff --git a/asm/src/org/aspectj/asm/AsmManager.java b/asm/src/org/aspectj/asm/AsmManager.java index 32bdbac13..eee12ab7e 100644 --- a/asm/src/org/aspectj/asm/AsmManager.java +++ b/asm/src/org/aspectj/asm/AsmManager.java @@ -86,7 +86,7 @@ public class AsmManager { // Record the Set for which the model has been modified during the // last incremental build private final Set lastBuildChanges = new HashSet(); - + // Record the Set of aspects that wove the files listed in lastBuildChanges final Set aspectsWeavingInLastBuild = new HashSet(); @@ -105,6 +105,7 @@ public class AsmManager { // call initialize on the handleProvider when we create a new ASM // to give handleProviders the chance to reset any state handleProvider.initialize(); + resetDeltaProcessing(); } public IHierarchy getHierarchy() { @@ -1216,11 +1217,12 @@ public class AsmManager { public void resetDeltaProcessing() { lastBuildChanges.clear(); - aspectsWeavingInLastBuild.clear(); + aspectsWeavingInLastBuild.clear(); } /** - * @return the Set of files for which the structure model was modified (they may have been removed or otherwise rebuilt). Set is empty for a full build. + * @return the Set of files for which the structure model was modified (they may have been removed or otherwise rebuilt). Set is + * empty for a full build. */ public Set getModelChangesOnLastBuild() { return lastBuildChanges; @@ -1232,7 +1234,7 @@ public class AsmManager { public Set getAspectsWeavingFilesOnLastBuild() { return aspectsWeavingInLastBuild; } - + public void addAspectInEffectThisBuild(File f) { aspectsWeavingInLastBuild.add(f); }