]> source.dussan.org Git - aspectj.git/commitdiff
198196: testcode
authoraclement <aclement>
Mon, 16 Jun 2008 23:37:09 +0000 (23:37 +0000)
committeraclement <aclement>
Mon, 16 Jun 2008 23:37:09 +0000 (23:37 +0000)
tests/bugs161/pr198196/Foo.java [new file with mode: 0644]
tests/bugs161/pr198196/Marker.java [new file with mode: 0644]
tests/bugs161/pr198196/MarkerAspect1.java [new file with mode: 0644]
tests/bugs161/pr198196/MarkerAspect2.java [new file with mode: 0644]
tests/bugs161/pr198196/MarkerAspect3.java [new file with mode: 0644]

diff --git a/tests/bugs161/pr198196/Foo.java b/tests/bugs161/pr198196/Foo.java
new file mode 100644 (file)
index 0000000..6923c26
--- /dev/null
@@ -0,0 +1,6 @@
+public class Foo {
+
+        public static void main(String[] args) {
+                System.err.println(new Foo().toString());
+        }
+}
diff --git a/tests/bugs161/pr198196/Marker.java b/tests/bugs161/pr198196/Marker.java
new file mode 100644 (file)
index 0000000..e1790ef
--- /dev/null
@@ -0,0 +1,5 @@
+public interface Marker {
+
+        String toString();
+}
+
diff --git a/tests/bugs161/pr198196/MarkerAspect1.java b/tests/bugs161/pr198196/MarkerAspect1.java
new file mode 100644 (file)
index 0000000..bb779e6
--- /dev/null
@@ -0,0 +1,13 @@
+aspect MarkerAspect1  { // VerifyError
+
+        declare parents: Foo implements Marker;
+
+        public String Foo.toString() {
+                new Runnable() {
+                        public void run() {
+                                super.toString();
+                        }
+                }.run();
+                return "oranges";
+        }
+}
diff --git a/tests/bugs161/pr198196/MarkerAspect2.java b/tests/bugs161/pr198196/MarkerAspect2.java
new file mode 100644 (file)
index 0000000..3130621
--- /dev/null
@@ -0,0 +1,14 @@
+aspect MarkerAspect2  { // IncompatibleClassChangeError
+
+
+        declare parents: Foo implements Marker;
+
+        public String Marker.toString() {
+                new Runnable() {
+                        public void run() {
+                                Marker.super.toString();
+                        }
+                }.run();
+                return "banana";//super.toString();
+        }
+}
\ No newline at end of file
diff --git a/tests/bugs161/pr198196/MarkerAspect3.java b/tests/bugs161/pr198196/MarkerAspect3.java
new file mode 100644 (file)
index 0000000..c00b008
--- /dev/null
@@ -0,0 +1,13 @@
+aspect MarkerAspect3  { // VerifyError
+
+        declare parents: Foo implements Marker;
+
+        public String Foo.toString() {
+                new Runnable() {
+                        public void run() {
+                                Foo.super.toString();
+                        }
+                }.run();
+                return "oranges";
+        }
+}