diff options
author | aclement <aclement> | 2008-06-04 17:21:14 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-06-04 17:21:14 +0000 |
commit | 14714d87d8e6822bb980c6fe6e3f5ef0a26537f7 (patch) | |
tree | b828b3019dbbe6cb4036b786fc11f349b8dd53bc /tests/src | |
parent | 52e8c2b37de4e4f18efe303b0e49e471ea75077e (diff) | |
download | aspectj-14714d87d8e6822bb980c6fe6e3f5ef0a26537f7.tar.gz aspectj-14714d87d8e6822bb980c6fe6e3f5ef0a26537f7.zip |
235597: test and fix: annotations on generic methods
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc161/Ajc161Tests.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc161/ajc161.xml | 23 |
2 files changed, 25 insertions, 2 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc161/Ajc161Tests.java b/tests/src/org/aspectj/systemtest/ajc161/Ajc161Tests.java index d03eebb5b..7aebc4b7b 100644 --- a/tests/src/org/aspectj/systemtest/ajc161/Ajc161Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc161/Ajc161Tests.java @@ -23,6 +23,7 @@ import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc161Tests extends org.aspectj.testing.XMLBasedAjcTestCase { // AspectJ1.6.1 + public void testAnnotationExposureGenerics_pr235597() { runTest("annotation exposure and generics");} public void testIncorrectRelationship_pr235204() { runTest("incorrect call relationship"); IRelationshipMap irm = AsmManager.getDefault().getRelationshipMap(); @@ -39,8 +40,7 @@ public class Ajc161Tests extends org.aspectj.testing.XMLBasedAjcTestCase { } } - public void testITDPrecedence_pr233838_1() { - runTest("itd precedence - 1"); } + public void testITDPrecedence_pr233838_1() { runTest("itd precedence - 1"); } public void testITDPrecedence_pr233838_2() { runTest("itd precedence - 2"); } public void testGetFieldGenerics_pr227401() { runTest("getfield problem with generics");} public void testGenericAbstractAspects_pr231478() { runTest("generic abstract aspects"); } diff --git a/tests/src/org/aspectj/systemtest/ajc161/ajc161.xml b/tests/src/org/aspectj/systemtest/ajc161/ajc161.xml index 8a48e58c5..7c87c3f24 100644 --- a/tests/src/org/aspectj/systemtest/ajc161/ajc161.xml +++ b/tests/src/org/aspectj/systemtest/ajc161/ajc161.xml @@ -3,6 +3,29 @@ <!-- AspectJ v1.6.1 Tests --> <suite> + <ajc-test dir="bugs161/pr235597" title="annotation exposure and generics"> + <compile files="AnnotationTest1.java SomeAnnotation.java SomeAspect.java" options="-1.5"/> + <run class="AnnotationTest1"> + <stdout> + <line text="@someAspect annotation parameter (call)"/> + <line text="@someAspect annotation no parameter"/> + <line text="@someAspect method name"/> + <line text="@someAspect annotation parameter (execution)"/> + <line text="test 1"/> + <line text="@someAspect annotation parameter (call)"/> + <line text="@someAspect annotation no parameter"/> + <line text="@someAspect method name"/> + <line text="@someAspect annotation parameter (execution)"/> + <line text="test 2"/> + <line text="@someAspect annotation parameter (call)"/> + <line text="@someAspect annotation no parameter"/> + <line text="@someAspect method name"/> + <line text="@someAspect annotation parameter (execution)"/> + <line text="test 3"/> + </stdout> + </run> + </ajc-test> + <ajc-test dir="bugs161/pr235204" title="incorrect call relationship"> <compile files="RecursiveCatcher.java" options="-1.5 -emacssym"/> |