mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-14 14:11:27 +02:00
18 lines
297 B
Java
18 lines
297 B
Java
public class PrivateSuperInnerAccess {
|
|
public static void main(String argv[]) {
|
|
Outer.C c = new Outer().new C();
|
|
c.foo();
|
|
}
|
|
}
|
|
|
|
class Outer {
|
|
class B {
|
|
private int x = 5;
|
|
}
|
|
class C extends B {
|
|
int foo() {
|
|
return super.x+1;
|
|
}
|
|
}
|
|
}
|