aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/ajcTestsFailing.xml10
-rw-r--r--tests/bugs/incremental-declare-error/pack/Aspect.20.java6
-rw-r--r--tests/bugs/incremental-declare-error/pack/Aspect.java6
-rw-r--r--tests/bugs/incremental-declare-error/pack/Main.java8
4 files changed, 30 insertions, 0 deletions
diff --git a/tests/ajcTestsFailing.xml b/tests/ajcTestsFailing.xml
index b3b6401b1..c109cf188 100644
--- a/tests/ajcTestsFailing.xml
+++ b/tests/ajcTestsFailing.xml
@@ -152,4 +152,14 @@
files="Test_AroundVarBug.java,AroundVarBug.java"/>
<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>
diff --git a/tests/bugs/incremental-declare-error/pack/Aspect.20.java b/tests/bugs/incremental-declare-error/pack/Aspect.20.java
new file mode 100644
index 000000000..ec9f72da5
--- /dev/null
+++ b/tests/bugs/incremental-declare-error/pack/Aspect.20.java
@@ -0,0 +1,6 @@
+
+package pack;
+
+public aspect Aspect {
+ declare error : execution(private static void Main.main(String[])) : "main";
+} \ No newline at end of file
diff --git a/tests/bugs/incremental-declare-error/pack/Aspect.java b/tests/bugs/incremental-declare-error/pack/Aspect.java
new file mode 100644
index 000000000..f3aa00547
--- /dev/null
+++ b/tests/bugs/incremental-declare-error/pack/Aspect.java
@@ -0,0 +1,6 @@
+
+package pack;
+
+public aspect Aspect {
+ declare error : execution(public static void Main.main(String[])) : "main";
+} \ No newline at end of file
diff --git a/tests/bugs/incremental-declare-error/pack/Main.java b/tests/bugs/incremental-declare-error/pack/Main.java
new file mode 100644
index 000000000..079b05d14
--- /dev/null
+++ b/tests/bugs/incremental-declare-error/pack/Main.java
@@ -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
+ }
+} \ No newline at end of file