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.

IllegalForwardReference.java 383B

1234567891011121314151617
  1. import org.aspectj.testing.Tester;
  2. public class IllegalForwardReference {
  3. public static void main(String[] args) {
  4. System.out.println(new Aspect.InnerClass().j + ", " + new Aspect.InnerClass().i);
  5. Tester.check(true, "compiled!");
  6. }
  7. }
  8. aspect Aspect {
  9. //int InnerClass.i = 13;
  10. static class InnerClass {
  11. int j = i;
  12. int i = 13;
  13. }
  14. }