diff options
author | aclement <aclement> | 2005-10-27 16:05:48 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-10-27 16:05:48 +0000 |
commit | ae3e83163186bb018b5bad55771e6384fad52802 (patch) | |
tree | 7e221caf13fc1d5ca5cc9374a71795250aaec982 /tests | |
parent | 426188d738b9dfbca6b75f68accf853b76dad1cd (diff) | |
download | aspectj-ae3e83163186bb018b5bad55771e6384fad52802.tar.gz aspectj-ae3e83163186bb018b5bad55771e6384fad52802.zip |
Fixes for pr113947.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | 6 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 19 |
2 files changed, 21 insertions, 4 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java index 1829956cf..a47dfca3b 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java @@ -51,8 +51,10 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase { public void testITDCtor_pr112783() { runTest("Problem with constructor ITDs");} */ - public void testUnboundFormal_pr112027() { runTest("unexpected error unboundFormalInPC");} - public void testCCEGenerics_pr113445() { runTest("Generics ClassCastException");} + public void testUnboundFormal_pr112027() { runTest("unexpected error unboundFormalInPC");} + public void testCCEGenerics_pr113445() { runTest("Generics ClassCastException");} + public void testMatthewsAspect_pr113947_1() { runTest("maws generic aspect - 1");} + public void testMatthewsAspect_pr113947_2() { runTest("maws generic aspect - 2");} public void testBadDecp_pr110788_1() { runTest("bad generic decp - 1");} public void testBadDecp_pr110788_2() { runTest("bad generic decp - 2");} diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml index 78e4d9318..e1adcc731 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -11,7 +11,22 @@ <compile files="pr112783.aj" options="-1.5"/> </ajc-test> - + <ajc-test dir="bugs150/pr113947/case1" title="maws generic aspect - 1"> + <compile files="AbstractListSupport.java,AnotherItem.java,Item.java,LinkedList.java,LinkedListItem.java,ListItem.java,StringList.java" options="-1.5"> + <!-- the 'static ref' messages are a bit poor and ought to be eliminated... --> + <message kind="error" line="6" text="Cannot make a static reference to the non-static type M"/> + <message kind="error" line="6" text="Cannot make inter-type declarations on type variables"/> + <message kind="error" line="8" text="Cannot make a static reference to the non-static type I"/> + <message kind="error" line="8" text="Cannot make inter-type declarations on type variables"/> + <message kind="error" line="12" text="Cannot make a static reference to the non-static type M"/> + <message kind="error" line="12" text="Cannot make inter-type declarations on type variables"/> + </compile> + </ajc-test> + + <ajc-test dir="bugs150/pr113947/case2" title="maws generic aspect - 2"> + <compile files="AbstractListSupport.java" options="-1.5"/><!--,AnotherItem.java,Item.java,LinkedList.java,LinkedListItem.java,ListItem.java,StringList.java" options="-1.5"/--> + </ajc-test> + <ajc-test dir="bugs150/pr99191" title="declare annotation on non existent type - 1"> <compile files="pr99191_1.java" options="-1.5"> <message kind="error" line="4" text="The field 'int C.noSuchField' does not exist"/> @@ -52,7 +67,7 @@ <message kind="warning" text="void C.<init>(int) - already has an annotation of type Annotation, cannot add a second instance [Xlint:elementAlreadyAnnotated]"/> </compile> </ajc-test> - + <ajc-test dir="bugs150/pr113630/case1" title="IncompatibleClassChangeError - errorscenario"> <compile files="Bean.java,BeanTestCase.java,javaBean.java,propertyChanger.java,PropertySupportAspect5.aj" options="-1.5"> <message kind="warning" line="9" text="Failing match because annotation 'javaBean' on type 'Bean' has SOURCE retention. Matching allowed when RetentionPolicy is CLASS or RUNTIME"/> |