From: wisberg Date: Sun, 7 Mar 2004 22:42:45 +0000 (+0000) Subject: regression test - provokes VerifyError in 1.1.1 but not in cvs head X-Git-Tag: v_preCompileLoopAlteration~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7fadb68e24cec28cbf990252bb926b60d1231602;p=aspectj.git regression test - provokes VerifyError in 1.1.1 but not in cvs head --- diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml index df4451ee2..1897a556b 100644 --- a/tests/ajcTests.xml +++ b/tests/ajcTests.xml @@ -7268,4 +7268,11 @@ + + + + + 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() { + } +}