aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs161
diff options
context:
space:
mode:
authoraclement <aclement>2008-06-16 23:37:09 +0000
committeraclement <aclement>2008-06-16 23:37:09 +0000
commit006eaf6886b36c289c7bc74b89016c277ac91051 (patch)
tree07b14998ae87ebe56aaff786abb40172330d036e /tests/bugs161
parent1d7244faef6a04535408216624adc1d60e161ff8 (diff)
downloadaspectj-006eaf6886b36c289c7bc74b89016c277ac91051.tar.gz
aspectj-006eaf6886b36c289c7bc74b89016c277ac91051.zip
198196: testcode
Diffstat (limited to 'tests/bugs161')
-rw-r--r--tests/bugs161/pr198196/Foo.java6
-rw-r--r--tests/bugs161/pr198196/Marker.java5
-rw-r--r--tests/bugs161/pr198196/MarkerAspect1.java13
-rw-r--r--tests/bugs161/pr198196/MarkerAspect2.java14
-rw-r--r--tests/bugs161/pr198196/MarkerAspect3.java13
5 files changed, 51 insertions, 0 deletions
diff --git a/tests/bugs161/pr198196/Foo.java b/tests/bugs161/pr198196/Foo.java
new file mode 100644
index 000000000..6923c269d
--- /dev/null
+++ b/tests/bugs161/pr198196/Foo.java
@@ -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
index 000000000..e1790ef07
--- /dev/null
+++ b/tests/bugs161/pr198196/Marker.java
@@ -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
index 000000000..bb779e6f2
--- /dev/null
+++ b/tests/bugs161/pr198196/MarkerAspect1.java
@@ -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
index 000000000..31306210e
--- /dev/null
+++ b/tests/bugs161/pr198196/MarkerAspect2.java
@@ -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
index 000000000..c00b0086a
--- /dev/null
+++ b/tests/bugs161/pr198196/MarkerAspect3.java
@@ -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";
+ }
+}