]> source.dussan.org Git - aspectj.git/commitdiff
226163: 251940: tests
authoraclement <aclement>
Fri, 24 Oct 2008 03:52:15 +0000 (03:52 +0000)
committeraclement <aclement>
Fri, 24 Oct 2008 03:52:15 +0000 (03:52 +0000)
tests/bugs163/pr226163/Code.java [new file with mode: 0644]
tests/bugs163/pr251940/F.aj [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java
tests/src/org/aspectj/systemtest/ajc163/ajc163.xml

diff --git a/tests/bugs163/pr226163/Code.java b/tests/bugs163/pr226163/Code.java
new file mode 100644 (file)
index 0000000..b66b786
--- /dev/null
@@ -0,0 +1,9 @@
+public class Code {
+ public void test(){
+        System.out.print(false);
+        if (){
+
+        }
+ }
+}
+
diff --git a/tests/bugs163/pr251940/F.aj b/tests/bugs163/pr251940/F.aj
new file mode 100644 (file)
index 0000000..fb1645b
--- /dev/null
@@ -0,0 +1,3 @@
+public aspect F implements Comparable pertarget(within(F)) {
+
+}
index 2a3679330e7c9490120845353ccb1f803ef2d44a..477022551f5fe6b8b95cc7b79f24c35bf0b740f9 100644 (file)
@@ -18,6 +18,14 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
 
 public class Ajc163Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
 
+       // public void testImplementsPertarget_pr251940() {
+       // runTest("implements pertarget");
+       // }
+
+       public void testBreakingRecovery_pr226163() {
+               runTest("breaking recovery");
+       }
+
        public void testGenericMethodConversions_pr250632() {
                runTest("type conversion in generic itd");
        }
index c44f85a6ff457f5c884a026e91abb34f4314a2f7..01aa94b974f8f0cc1291956b4aa7fa2832bdde2b 100644 (file)
@@ -2,6 +2,15 @@
 
 <suite>
 
+    <ajc-test dir="bugs163/pr251940" title="implements pertarget">
+      <compile files="F.aj" options="-1.5"/>
+    </ajc-test>
+
+    <ajc-test dir="bugs163/pr226163" title="breaking recovery">
+      <compile files="Code.java" options="-1.5">
+        <message kind="error" line="4" text="Syntax error"/>
+      </compile>
+    </ajc-test>
 
     <ajc-test dir="bugs163/pr250632" title="type conversion in generic itd">
       <compile files="MyAspect.java" options="-1.5"/>