diff options
author | aclement <aclement> | 2006-04-06 10:44:14 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-04-06 10:44:14 +0000 |
commit | 94d8b82fbf3cb18a14d77508b3adad6d50434080 (patch) | |
tree | dac613095340016c49cb1427cd8079318329a62c /tests | |
parent | fdd4e869b979f9c5d75d339e898830a27650c1b3 (diff) | |
download | aspectj-94d8b82fbf3cb18a14d77508b3adad6d50434080.tar.gz aspectj-94d8b82fbf3cb18a14d77508b3adad6d50434080.zip |
test and fix for 134541
Diffstat (limited to 'tests')
3 files changed, 32 insertions, 0 deletions
diff --git a/tests/multiIncremental/PR134541/base/A.aj b/tests/multiIncremental/PR134541/base/A.aj new file mode 100644 index 000000000..73b2136e9 --- /dev/null +++ b/tests/multiIncremental/PR134541/base/A.aj @@ -0,0 +1,8 @@ +public aspect A { + + pointcut p() : execution(* *.*(..)); + + before() : p() { + } + +} diff --git a/tests/multiIncremental/PR134541/inc1/A.aj b/tests/multiIncremental/PR134541/inc1/A.aj new file mode 100644 index 000000000..0138161f0 --- /dev/null +++ b/tests/multiIncremental/PR134541/inc1/A.aj @@ -0,0 +1,10 @@ +public aspect A { + + pointcut p() : execution(* *.*(..)); + + + + before() : p() { + } + +} diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java index e4e88e377..c6f6672a5 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java @@ -846,6 +846,20 @@ public class MultiProjectIncrementalTests extends AjdeInteractionTestbed { decisions.indexOf(expect)!=-1); } + public void testPr134541() { + initialiseProject("PR134541"); + build("PR134541"); + assertEquals("[Xlint:adviceDidNotMatch] should be associated with line 5",5, + ((IMessage)MyTaskListManager.getWarningMessages().get(0)).getSourceLocation().getLine()); + alter("PR134541","inc1"); + build("PR134541"); + checkWasntFullBuild(); // we've only added a white space therefore we + // shouldn't be doing a full build + assertEquals("[Xlint:adviceDidNotMatch] should now be associated with line 7",7, + ((IMessage)MyTaskListManager.getWarningMessages().get(0)).getSourceLocation().getLine()); + } + + // other possible tests: // - memory usage (freemem calls?) // - relationship map |