From e21bf1e36e46dae8c49d9d83bf810747ff56f0a9 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 3 Oct 2005 08:46:39 +0000 Subject: test for pr84033 promoted from failing suite to real suite. --- tests/ajcTestsFailing.xml | 9 --------- tests/bugs/incremental-declare-error/changes/Aspect.20.java | 6 ++++++ tests/bugs/incremental-declare-error/src/pack/Aspect.java | 6 ++++++ tests/bugs/incremental-declare-error/src/pack/Main.java | 8 ++++++++ .../org/aspectj/systemtest/incremental/IncrementalTests.java | 7 +++++++ .../systemtest/incremental/incremental-junit-tests.xml | 11 +++++++++++ 6 files changed, 38 insertions(+), 9 deletions(-) create mode 100644 tests/bugs/incremental-declare-error/changes/Aspect.20.java create mode 100644 tests/bugs/incremental-declare-error/src/pack/Aspect.java create mode 100644 tests/bugs/incremental-declare-error/src/pack/Main.java (limited to 'tests') diff --git a/tests/ajcTestsFailing.xml b/tests/ajcTestsFailing.xml index c109cf188..6778764c6 100644 --- a/tests/ajcTestsFailing.xml +++ b/tests/ajcTestsFailing.xml @@ -153,13 +153,4 @@ - - - - - - - - diff --git a/tests/bugs/incremental-declare-error/changes/Aspect.20.java b/tests/bugs/incremental-declare-error/changes/Aspect.20.java new file mode 100644 index 000000000..ec9f72da5 --- /dev/null +++ b/tests/bugs/incremental-declare-error/changes/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/src/pack/Aspect.java b/tests/bugs/incremental-declare-error/src/pack/Aspect.java new file mode 100644 index 000000000..f3aa00547 --- /dev/null +++ b/tests/bugs/incremental-declare-error/src/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/src/pack/Main.java b/tests/bugs/incremental-declare-error/src/pack/Main.java new file mode 100644 index 000000000..079b05d14 --- /dev/null +++ b/tests/bugs/incremental-declare-error/src/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 diff --git a/tests/src/org/aspectj/systemtest/incremental/IncrementalTests.java b/tests/src/org/aspectj/systemtest/incremental/IncrementalTests.java index d4a4f62f2..7294c54cb 100644 --- a/tests/src/org/aspectj/systemtest/incremental/IncrementalTests.java +++ b/tests/src/org/aspectj/systemtest/incremental/IncrementalTests.java @@ -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"); + } + } diff --git a/tests/src/org/aspectj/systemtest/incremental/incremental-junit-tests.xml b/tests/src/org/aspectj/systemtest/incremental/incremental-junit-tests.xml index b16dd107e..794a63dd3 100644 --- a/tests/src/org/aspectj/systemtest/incremental/incremental-junit-tests.xml +++ b/tests/src/org/aspectj/systemtest/incremental/incremental-junit-tests.xml @@ -377,4 +377,15 @@ + + + + + + + + \ No newline at end of file -- cgit v1.2.3