summaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authoraclement <aclement>2008-02-21 03:17:04 +0000
committeraclement <aclement>2008-02-21 03:17:04 +0000
commit19a25bbf7b6e2bc627e45c2e739a239816b883c2 (patch)
tree2cf0c0d978fb19acdcb67ad4f7defa74753eb019 /tests/src
parent1c6172217be1cc8cf778d1e30e18a870602e7c46 (diff)
downloadaspectj-19a25bbf7b6e2bc627e45c2e739a239816b883c2.tar.gz
aspectj-19a25bbf7b6e2bc627e45c2e739a239816b883c2.zip
209831: testcode
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java2
-rw-r--r--tests/src/org/aspectj/systemtest/ajc160/ajc160.xml12
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java b/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java
index b35347709..34c236973 100644
--- a/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java
@@ -31,6 +31,8 @@ public class Ajc160Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
public void testDecpRepetition_pr214559() { runTest("decp repetition problem");} // all code in one file
public void testDecpRepetition_pr214559_2() { runTest("decp repetition problem - 2");} // all code in one file, default package
public void testDecpRepetition_pr214559_3() { runTest("decp repetition problem - 3");} // across multiple files
+ public void testISEAnnotations_pr209831() { runTest("illegal state exception with annotations");}
+ public void testISEAnnotations_pr209831_2() { runTest("illegal state exception with annotations - 2");}
/////////////////////////////////////////
public static Test suite() {
diff --git a/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml b/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml
index fdf8f0dd9..8747270e3 100644
--- a/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml
+++ b/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml
@@ -60,5 +60,17 @@
<compile files="TestClass.java Interface1.java Interface1TestClass.java DeclareParentsPrecedenceTest.java TestAspect.java"/>
<run class="DeclareParentsPrecedenceTest"/>
</ajc-test>
+
+ <ajc-test dir="bugs160/pr209831" title="illegal state exception with annotations">
+ <compile options="-1.5 -showWeaveInfo" files="Test.java">
+ <message kind="weave" text="Join point 'exception-handler(void Test.&lt;catch&gt;(java.lang.Throwable))' in Type 'Test' (Test.java:34) advised by before advice from 'ExactAnnotationTypePatternBug' (Test.java:5)"/>
+ </compile>
+ <run class="Test"/>
+ </ajc-test>
+
+ <ajc-test dir="bugs160/pr209831" title="illegal state exception with annotations - 2">
+ <compile options="-Xlint:ignore -1.5 -showWeaveInfo" files="Test2.java"/>
+ <run class="Test2"/>
+ </ajc-test>
</suite> \ No newline at end of file