diff options
author | acolyer <acolyer> | 2005-08-26 11:43:32 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-08-26 11:43:32 +0000 |
commit | 27e68f3b3ae82408e8e046a40ab69d9e4996ff5a (patch) | |
tree | 483b14300087f4fd886561dd8d6a9329d098ae8f /tests | |
parent | d9132dc6a4ca244a4404d7a7f4e19d9983309962 (diff) | |
download | aspectj-1_5_0M3a.tar.gz aspectj-1_5_0M3a.zip |
tests for pr108050, signature matching in multiple override scenarioV1_5_0M3a
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs150/pr108050.aj | 30 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 10 |
3 files changed, 43 insertions, 1 deletions
diff --git a/tests/bugs150/pr108050.aj b/tests/bugs150/pr108050.aj new file mode 100644 index 000000000..5ad5d25cb --- /dev/null +++ b/tests/bugs150/pr108050.aj @@ -0,0 +1,30 @@ +class HttpServlet { + protected void doPost() { + } +} + +abstract class MockServlet extends HttpServlet { + protected void doPost() { + } + + private static aspect FindMatches { + declare warning: execution(* HttpServlet.do*(..)): "servlet request"; + } +} + +class MockDelayingServlet extends MockServlet { + private static final long serialVersionUID = 1; +} + +class MockServlet4 extends MockDelayingServlet +{ + protected void doPost() + { + } +} + + + + + + diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java index d82a6b9ce..c442b9724 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java @@ -286,6 +286,10 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("multiple anonymous inner classes 2"); } + public void testSignatureMatchingInMultipleOverrideScenario() { + runTest("signature matching in override scenario"); + } + // helper methods..... public SyntheticRepository createRepos(File cpentry) { diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml index 99182a7e1..3cebcd13d 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -137,7 +137,15 @@ <compile files="pr108104.aj" options="-1.5"> </compile> </ajc-test> - + + <ajc-test dir="bugs150" pr="108050" title="signature matching in override scenario"> + <compile files="pr108050.aj" options="-1.5"> + <message kind="warning" line = "2" text="servlet request"></message> + <message kind="warning" line = "7" text="servlet request"></message> + <message kind="warning" line = "21" text="servlet request"></message> + </compile> + </ajc-test> + <ajc-test dir="bugs150/pr106130" pr="106130" title="test weaving with > 256 locals"> <compile files="AroundLotsOfVars.java LotsOfVars.java" options="-preserveAllLocals"/> <run class="LotsOfVars"> |