]> source.dussan.org Git - aspectj.git/commitdiff
246393: new compiler build
authoraclement <aclement>
Tue, 27 Jan 2009 02:41:20 +0000 (02:41 +0000)
committeraclement <aclement>
Tue, 27 Jan 2009 02:41:20 +0000 (02:41 +0000)
tests/bugs164/pr246393/D.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java
tests/src/org/aspectj/systemtest/ajc164/ajc164.xml

diff --git a/tests/bugs164/pr246393/D.java b/tests/bugs164/pr246393/D.java
new file mode 100644 (file)
index 0000000..1b2e099
--- /dev/null
@@ -0,0 +1,12 @@
+import java.io.*;
+package snippet;
+
+public class D {
+        public static String readContent(InputStream is) {
+                try {
+                } catch (IOException ioe) {
+                        ioe.printStackTrace();
+                }
+        }
+}
+
index 43304153e356b7987248e14721fc2bf515ae94ff..ce720e8721bafc0cfdc7d8b7fba70948aac82dde 100644 (file)
@@ -18,6 +18,15 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
 
 public class Ajc164Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
 
+       public void testRogueErrors_pr246393_1() {
+               runTest("rogue errors - 1");
+       }
+
+//     public void testNameClash_pr262257() {
+//             runTest("name clash");
+//             fail("incomplete");
+//     }
+
        public void testCompilingSpring_pr260384() {
                runTest("compiling spring");
        }
@@ -25,15 +34,15 @@ public class Ajc164Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
        public void testCompilingSpring_pr260384_2() {
                runTest("compiling spring - 2");
        }
-       
+
        public void testCompilingSpring_pr260384_3() {
                runTest("compiling spring - 3");
        }
-       
+
        public void testCompilingSpring_pr260384_4() {
                runTest("compiling spring - 4");
        }
-       
+
        public void testAtAspectJDecp_pr164016() {
                runTest("ataspectj decp 164016");
        }
index 768c30d1f8d52a4efc32a3894026cbdf92fe46bb..bfdfada6360b388129e0355dea23893d613dfb43 100644 (file)
@@ -2,6 +2,17 @@
 
 <suite>
     
+    <ajc-test dir="bugs164/pr246393" title="rogue errors - 1">
+      <compile files="D.java" options="-1.5">
+        <message kind="error" line="2" text="error on token"/>
+      </compile>
+    </ajc-test> 
+
+    <ajc-test dir="bugs164/pr262257" title="name clash">
+      <compile files="C.java" options="-1.5">
+      </compile>
+    </ajc-test> 
+       
     <ajc-test dir="bugs164/pr260384" title="compiling spring">
       <compile files="Broken.java" options="-1.5">
       </compile>