diff options
author | acolyer <acolyer> | 2004-08-19 12:41:23 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2004-08-19 12:41:23 +0000 |
commit | 06ef21154f9055c7a80091ae80542c0b7289b4f6 (patch) | |
tree | 53a35f3f0eb2c1afa6a5dcb31a421f491190d7ce /tests | |
parent | 65c67a4e848311efb7402f5d06bd1a833720b94b (diff) | |
download | aspectj-06ef21154f9055c7a80091ae80542c0b7289b4f6.tar.gz aspectj-06ef21154f9055c7a80091ae80542c0b7289b4f6.zip |
fix for Bugzilla Bug 37020
wrong line for method execution join point
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc121/Ajc121Tests.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc121/ajc121-tests.xml | 23 |
2 files changed, 27 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc121/Ajc121Tests.java b/tests/src/org/aspectj/systemtest/ajc121/Ajc121Tests.java index d72492811..93353cb8e 100644 --- a/tests/src/org/aspectj/systemtest/ajc121/Ajc121Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc121/Ajc121Tests.java @@ -244,5 +244,9 @@ public class Ajc121Tests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("Inconsistency in scoping of protected members in ITDs"); } + public void test045_wrongLineForExecutionJoinPoint() { + runTest("wrong line for method execution join point"); + } + } diff --git a/tests/src/org/aspectj/systemtest/ajc121/ajc121-tests.xml b/tests/src/org/aspectj/systemtest/ajc121/ajc121-tests.xml index 3116d9a50..94c9db44f 100644 --- a/tests/src/org/aspectj/systemtest/ajc121/ajc121-tests.xml +++ b/tests/src/org/aspectj/systemtest/ajc121/ajc121-tests.xml @@ -354,4 +354,27 @@ <message kind="error" line="11" text="The method clone() from the type Object is not visible"/> <message kind="error" line="12" text="The method clone() from the type Object is not static"/> </compile> + </ajc-test> + + <ajc-test dir="design/sourceLines" pr="37020" + title="wrong line for method execution join point"> + <compile files="TestSourceLines.java"> + <message kind="warning" line="5" text="static init"/> + <message kind="warning" line="12" text="cons execution"/> + <message kind="warning" line="12" text="pre-init"/> + <message kind="warning" line="12" text="init"/> + <message kind="warning" line="16" text="cons execution"/> + <message kind="warning" line="16" text="init"/> + <message kind="warning" line="16" text="pre-init"/> + <message kind="warning" line="20" text="method execution"/> + <message kind="warning" line="24" text="method execution"/> + <message kind="warning" line="28" text="method execution"/> + <message kind="warning" line="35" text="static init"/> + <message kind="warning" line="35" text="init"/> + <message kind="warning" line="35" text="pre-init"/> + <message kind="warning" line="39" text="pre-init"/> + <message kind="warning" line="39" text="init"/> + <message kind="warning" line="39" text="static init"/> + <message kind="warning" line="47" text="advice"/> + </compile> </ajc-test>
\ No newline at end of file |