의 미러
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-26 05:57:44 +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;
|
|
}
|