]> source.dussan.org Git - aspectj.git/commitdiff
209831: testcode
authoraclement <aclement>
Thu, 21 Feb 2008 03:17:04 +0000 (03:17 +0000)
committeraclement <aclement>
Thu, 21 Feb 2008 03:17:04 +0000 (03:17 +0000)
tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java
tests/src/org/aspectj/systemtest/ajc160/ajc160.xml

index b35347709e3b81e4bf05e2619b6442c8604c6da4..34c2369738191739b313f97147e1612a6905a319 100644 (file)
@@ -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() {
index fdf8f0dd95a12f554b8c8a73f685af64968137e0..8747270e30a434c9ed07aef0ba73c27795e5aa6c 100644 (file)
      <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