镜像自地址
https://github.com/eclipse-aspectj/aspectj.git
已同步 2024-08-01 20:19:32 +02:00
12 行
257 B
Java
12 行
257 B
Java
![]() |
package protectedFieldRefInInner;
|
||
|
|
||
|
public class Main extends protectedFieldRefInInner.p1.C {
|
||
|
private int y = 4;
|
||
|
class Inner {
|
||
|
int foo() { return x = x + y; }
|
||
|
}
|
||
|
public static void main(String[] args) {
|
||
|
new Main().new Inner().foo();
|
||
|
}
|
||
|
}
|