mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-13 15:45:38 +02:00
22 lines
352 B
Java
22 lines
352 B
Java
|
|
||
|
public class InnerFieldRef {
|
||
|
private Foo foo = new Foo();
|
||
|
|
||
|
private static int x;
|
||
|
|
||
|
public static void main(String[] args) {
|
||
|
new InnerFieldRef().new Inner().m();
|
||
|
}
|
||
|
|
||
|
private class Inner {
|
||
|
public void m() {
|
||
|
foo.b = true;
|
||
|
(new InnerFieldRef()).x = 3;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class Foo {
|
||
|
public boolean b;
|
||
|
}
|