@@ -153,13 +153,4 @@ | |||
<run class="Test_AroundVarBug"/> | |||
</ajc-test> | |||
<ajc-test dir="bugs/incremental-declare-error" pr="84033" | |||
title="incremental declare error persists after fix"> | |||
<compile files="pack/Aspect.java,pack/Main.java"> | |||
<message kind="error" line="6" text="main"/> | |||
</compile> | |||
<inc-compile tag="20"/> | |||
<run class="pack.Main"/> | |||
</ajc-test> | |||
</suite> |
@@ -0,0 +1,6 @@ | |||
package pack; | |||
public aspect Aspect { | |||
declare error : execution(private static void Main.main(String[])) : "main"; | |||
} |
@@ -0,0 +1,6 @@ | |||
package pack; | |||
public aspect Aspect { | |||
declare error : execution(public static void Main.main(String[])) : "main"; | |||
} |
@@ -0,0 +1,8 @@ | |||
package pack; | |||
/** @testcase PR#84033 incremental declare error persists after fix */ | |||
public class Main { | |||
public static void main(String[] args) { // CE 6 on first pass, not second | |||
} | |||
} |
@@ -256,5 +256,12 @@ public class IncrementalTests extends org.aspectj.testing.XMLBasedAjcTestCase { | |||
copyFileAndDoIncrementalBuild("changes/X.20.aj","src/X.aj"); | |||
} | |||
public void testPersistingDeow_pr84033() throws Exception { | |||
runTest("incremental declare error persists after fix"); | |||
copyFileAndDoIncrementalBuild("changes/Aspect.20.java", "src/pack/Aspect.java"); | |||
nextIncrement(true); | |||
RunResult before = run("pack.Main"); | |||
} | |||
} | |||
@@ -377,4 +377,15 @@ | |||
<compile staging="true" options="-incremental,-verbose,-emacssym" sourceroots="src"/> | |||
<!--inc-compile tag="20"/--> | |||
</ajc-test> | |||
<ajc-test dir="bugs/incremental-declare-error" pr="84033" | |||
title="incremental declare error persists after fix"> | |||
<compile staging="true" | |||
options="-incremental,-verbose" | |||
sourceroots="src"> | |||
<message kind="error" line="6" text="main"/> | |||
</compile> | |||
<!--inc-compile tag="20"/--> | |||
<!--run class="pack.Main"/--> | |||
</ajc-test> | |||