<run class="Test_AroundVarBug"/> | <run class="Test_AroundVarBug"/> | ||||
</ajc-test> | </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> | </suite> |
package pack; | |||||
public aspect Aspect { | |||||
declare error : execution(private static void Main.main(String[])) : "main"; | |||||
} |
package pack; | |||||
public aspect Aspect { | |||||
declare error : execution(public static void Main.main(String[])) : "main"; | |||||
} |
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 | |||||
} | |||||
} |
copyFileAndDoIncrementalBuild("changes/X.20.aj","src/X.aj"); | 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"); | |||||
} | |||||
} | } | ||||
<compile staging="true" options="-incremental,-verbose,-emacssym" sourceroots="src"/> | <compile staging="true" options="-incremental,-verbose,-emacssym" sourceroots="src"/> | ||||
<!--inc-compile tag="20"/--> | <!--inc-compile tag="20"/--> | ||||
</ajc-test> | </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> | |||||