]> source.dussan.org Git - aspectj.git/commitdiff
102733: broken code support, wooo
authoraclement <aclement>
Fri, 13 Jun 2008 23:22:43 +0000 (23:22 +0000)
committeraclement <aclement>
Fri, 13 Jun 2008 23:22:43 +0000 (23:22 +0000)
tests/bugs161/pr102733/C.java [new file with mode: 0644]
tests/bugs161/pr102733/C2.java [new file with mode: 0644]
tests/bugs161/pr102733/Invoker.java [new file with mode: 0644]
tests/bugs161/pr102733/Invoker2.java [new file with mode: 0644]
tests/multiIncremental/pr102733_1/base/C.java [new file with mode: 0644]
tests/multiIncremental/pr102733_1/inc1/C.java [new file with mode: 0644]
tests/multiIncremental/pr102733_1/inc2/C.java [new file with mode: 0644]

diff --git a/tests/bugs161/pr102733/C.java b/tests/bugs161/pr102733/C.java
new file mode 100644 (file)
index 0000000..4e84bb4
--- /dev/null
@@ -0,0 +1,2 @@
+
+blahblahpackage pack;public class C { public static void main(String[]argv) {}}
diff --git a/tests/bugs161/pr102733/C2.java b/tests/bugs161/pr102733/C2.java
new file mode 100644 (file)
index 0000000..be8724d
--- /dev/null
@@ -0,0 +1,11 @@
+
+public class C2 { 
+       
+       public void foo() {
+               i cant be bothered to fill this in!
+       }
+       
+       public static void main(String[]argv) {
+               
+       }
+}
diff --git a/tests/bugs161/pr102733/Invoker.java b/tests/bugs161/pr102733/Invoker.java
new file mode 100644 (file)
index 0000000..bfa162d
--- /dev/null
@@ -0,0 +1,14 @@
+import java.lang.reflect.Method;
+
+public class Invoker {
+       public static void main(String[] args) throws Throwable {
+               try {
+                       C.main(null);
+               } catch (Throwable t) {
+                       boolean failedCorrectly = t.toString().indexOf("Unresolved compilation")!=-1;
+                       if (failedCorrectly) return;
+                       throw t;
+               }
+               throw new RuntimeException("Call to main should have failed!");
+       }
+}
\ No newline at end of file
diff --git a/tests/bugs161/pr102733/Invoker2.java b/tests/bugs161/pr102733/Invoker2.java
new file mode 100644 (file)
index 0000000..3a72c67
--- /dev/null
@@ -0,0 +1,7 @@
+import java.lang.reflect.Method;
+
+public class Invoker2 {
+       public static void main(String[] args) throws Throwable {
+               C2.main(null); // C2.main() isnt broken but C2.foo() is
+       }
+}
\ No newline at end of file
diff --git a/tests/multiIncremental/pr102733_1/base/C.java b/tests/multiIncremental/pr102733_1/base/C.java
new file mode 100644 (file)
index 0000000..7688597
--- /dev/null
@@ -0,0 +1,8 @@
+public class C {
+  public static void main(String[] argv) {
+  }
+
+  public void foo() {
+    I is busted
+  }
+}
diff --git a/tests/multiIncremental/pr102733_1/inc1/C.java b/tests/multiIncremental/pr102733_1/inc1/C.java
new file mode 100644 (file)
index 0000000..4f44938
--- /dev/null
@@ -0,0 +1,8 @@
+public class C {
+  public static void main(String[] argv) {
+  }
+
+  public void foo() {
+//    I is busted
+  }
+}
diff --git a/tests/multiIncremental/pr102733_1/inc2/C.java b/tests/multiIncremental/pr102733_1/inc2/C.java
new file mode 100644 (file)
index 0000000..7688597
--- /dev/null
@@ -0,0 +1,8 @@
+public class C {
+  public static void main(String[] argv) {
+  }
+
+  public void foo() {
+    I is busted
+  }
+}