mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-02 05:58:13 +02:00
18 lines
383 B
Java
18 lines
383 B
Java
![]() |
import org.aspectj.testing.Tester;
|
||
|
|
||
|
public class IllegalForwardReference {
|
||
|
public static void main(String[] args) {
|
||
|
System.out.println(new Aspect.InnerClass().j + ", " + new Aspect.InnerClass().i);
|
||
|
Tester.check(true, "compiled!");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
aspect Aspect {
|
||
|
//int InnerClass.i = 13;
|
||
|
|
||
|
static class InnerClass {
|
||
|
int j = i;
|
||
|
int i = 13;
|
||
|
}
|
||
|
}
|