summaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-08-12 11:43:38 +0000
committeracolyer <acolyer>2005-08-12 11:43:38 +0000
commitfe02f87368665c4f014e0be4525ed2d443967037 (patch)
tree8e000a9fb309298b14af29a199f879c0f65d1732 /tests/src
parentfcb69e778830899386023f587e0837b7e921e04e (diff)
downloadaspectj-fe02f87368665c4f014e0be4525ed2d443967037.tar.gz
aspectj-fe02f87368665c4f014e0be4525ed2d443967037.zip
test case and fix for (.....)+ type pattern parsing
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ajc150.xml11
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
index 36b3a0b91..fdab101db 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
@@ -196,6 +196,10 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
runTest("IllegalStateException unpacking signature of nested parameterized type");
}
+ public void testParseErrorOnAnnotationStarPlusPattern() {
+ runTest("(@Foo *)+ type pattern parse error");
+ }
+
public void testMissingNamePattern_pr106461() { runTest("missing name pattern"); }
// helper methods.....
diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
index 9dfbe2f91..d94182d55 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
+++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
@@ -186,6 +186,10 @@
<compile files="pr106634.aj" options="-1.5"/>
</ajc-test>
+ <ajc-test dir="bugs150" title="(@Foo *)+ type pattern parse error">
+ <compile files="AnnotationPlusPatternParseError.aj" options="-1.5"/>
+ </ajc-test>
+
<ajc-test dir="../docs/dist/doc/examples/introduction" title="introduction sample" vm="1.5">
<compile files="CloneablePoint.java,ComparablePoint.java,HashablePoint.java,Point.java" options="-1.5"/>
</ajc-test>
@@ -2371,6 +2375,13 @@
</run>
</ajc-test>
+ <ajc-test dir="java5/generics/genericaspects" title="generic aspect declare parents">
+ <compile files="DeclareParentsWithTypeVars.aj" options="-1.5">
+ </compile>
+ <run class="DeclareParentsWithTypeVars">
+ </run>
+ </ajc-test>
+
<!-- ajdk example -->
<ajc-test dir="java5/generics/genericaspects" title="generic aspects - 5 (ajdk)">
<compile files="Blob.java,BlobContainment.aj,ParentChildRelationship.aj" options="-1.5"/>