選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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. }