<compile files="IntertypeDifferentThrows.java" />
</ajc-test>
+ <ajc-test dir="new"
+ comment="in ajc 1.1.1, VerifyError Illegal use of nonvirtual function call"
+ title="super call in anonymous class created in around advice">
+ <compile files="SuperClosure.java" />
+ <run class="SuperClosure" />
+ </ajc-test>
+
</suite>
--- /dev/null
+
+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() {
+ }
+}