summaryrefslogtreecommitdiffstats
path: root/tests/new
diff options
context:
space:
mode:
authorwisberg <wisberg>2004-03-07 22:42:45 +0000
committerwisberg <wisberg>2004-03-07 22:42:45 +0000
commit7fadb68e24cec28cbf990252bb926b60d1231602 (patch)
tree5ac73d3034f4d5f6a4ab26623a7d6fbe01c6ba03 /tests/new
parentc79892369fa4225ee5eb71b42c96e289f2eb4fc9 (diff)
downloadaspectj-7fadb68e24cec28cbf990252bb926b60d1231602.tar.gz
aspectj-7fadb68e24cec28cbf990252bb926b60d1231602.zip
regression test - provokes VerifyError in 1.1.1 but not in cvs head
Diffstat (limited to 'tests/new')
-rw-r--r--tests/new/SuperClosure.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/new/SuperClosure.java b/tests/new/SuperClosure.java
new file mode 100644
index 000000000..559763165
--- /dev/null
+++ b/tests/new/SuperClosure.java
@@ -0,0 +1,21 @@
+
+public class SuperClosure {
+ public static void main(String[] args) {
+ }
+}
+
+aspect A {
+ void around() : execution(void main(String[])) {
+ Runner runner = new Runner() {
+ public void run() {
+ // ajc 1.1.1 VerifyError: Illegal use of nonvirtual function call
+ super.run();
+ }
+ };
+ runner.run();
+ }
+}
+class Runner implements Runnable {
+ public void run() {
+ }
+}