diff options
author | wisberg <wisberg> | 2005-01-31 11:53:38 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2005-01-31 11:53:38 +0000 |
commit | 82c45963d7c28080668a5b19a8bdb2fc29e15342 (patch) | |
tree | d1d3542adb71896e8df7eb305b75a8b1bcc46c64 /tests | |
parent | 41caa4137c20d581079192659bf43d731aff669f (diff) | |
download | aspectj-82c45963d7c28080668a5b19a8bdb2fc29e15342.tar.gz aspectj-82c45963d7c28080668a5b19a8bdb2fc29e15342.zip |
@testcase PR#84033 incremental declare error persists after fix
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ajcTestsFailing.xml | 10 | ||||
-rw-r--r-- | tests/bugs/incremental-declare-error/pack/Aspect.20.java | 6 | ||||
-rw-r--r-- | tests/bugs/incremental-declare-error/pack/Aspect.java | 6 | ||||
-rw-r--r-- | tests/bugs/incremental-declare-error/pack/Main.java | 8 |
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 |