diff options
author | aclement <aclement> | 2006-05-05 09:46:43 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-05-05 09:46:43 +0000 |
commit | 299c3a4f2c5205102b89d63c4a8f1bccb158eef1 (patch) | |
tree | dfa7756b4339287d687197b0b6066bfcfecb8583 /tests | |
parent | 14e2901d1f975cbdbc2813e813de25df3ff1fbab (diff) | |
download | aspectj-299c3a4f2c5205102b89d63c4a8f1bccb158eef1.tar.gz aspectj-299c3a4f2c5205102b89d63c4a8f1bccb158eef1.zip |
test and fix for 134371
Diffstat (limited to 'tests')
3 files changed, 20 insertions, 1 deletions
diff --git a/tests/multiIncremental/PR134371/base/A.aj b/tests/multiIncremental/PR134371/base/A.aj new file mode 100644 index 000000000..70e78cf68 --- /dev/null +++ b/tests/multiIncremental/PR134371/base/A.aj @@ -0,0 +1,5 @@ +public abstract aspect A perthis(annotatedClasses()) { + + pointcut annotatedClasses(); + +} diff --git a/tests/multiIncremental/PR134371/inc1/A.aj b/tests/multiIncremental/PR134371/inc1/A.aj new file mode 100644 index 000000000..d2e253938 --- /dev/null +++ b/tests/multiIncremental/PR134371/inc1/A.aj @@ -0,0 +1,5 @@ +public aspect A perthis(annotatedClasses()) { + + pointcut annotatedClasses(); + +} diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java index 9cea1637a..df8ce4ab4 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java @@ -160,7 +160,16 @@ public class MultiProjectIncrementalTests extends AjdeInteractionTestbed { build("P1"); checkWasFullBuild(); // adding an aspect makes us go back to the source } - + + public void testPr134371() { + initialiseProject("PR134371"); + build("PR134371"); + alter("PR134371","inc1"); + build("PR134371"); + assertTrue("There should be no exceptions handled:\n"+MyErrorHandler.getErrorMessages(), + MyErrorHandler.getErrorMessages().isEmpty()); + + } /** * Setup up two simple projects and build them in turn - check the |