You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SuperClosure.java 381B

123456789101112131415161718192021
  1. public class SuperClosure {
  2. public static void main(String[] args) {
  3. }
  4. }
  5. aspect A {
  6. void around() : execution(void main(String[])) {
  7. Runner runner = new Runner() {
  8. public void run() {
  9. // ajc 1.1.1 VerifyError: Illegal use of nonvirtual function call
  10. super.run();
  11. }
  12. };
  13. runner.run();
  14. }
  15. }
  16. class Runner implements Runnable {
  17. public void run() {
  18. }
  19. }