aboutsummaryrefslogtreecommitdiffstats
path: root/asm
diff options
context:
space:
mode:
authoraclement <aclement>2008-10-15 18:30:12 +0000
committeraclement <aclement>2008-10-15 18:30:12 +0000
commit37eb8562e8705552b5a448cd3ba4f5a047aed172 (patch)
tree0b3c4a1647ac09a8486f8f0222f0cee21a25f84e /asm
parentfa62ef97cd21cb7f7904735d4c877d2bf3555a60 (diff)
downloadaspectj-37eb8562e8705552b5a448cd3ba4f5a047aed172.tar.gz
aspectj-37eb8562e8705552b5a448cd3ba4f5a047aed172.zip
reset the lists when a new asm created
Diffstat (limited to 'asm')
-rw-r--r--asm/src/org/aspectj/asm/AsmManager.java10
1 files changed, 6 insertions, 4 deletions
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<File> for which the model has been modified during the
// last incremental build
private final Set lastBuildChanges = new HashSet();
-
+
// Record the Set<File> 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);
}