blob: ce3ed70734413ad139748844e3848fb35516ebf5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// PR 52928
public class VisiblePrivateInterfaceITDs {
public static void main(String[] args) {
VisiblePrivateInterfaceITDs s = new VisiblePrivateInterfaceITDs();
s.aMethod();
}
public void aMethod() {
// x is introduced by the following aspect as private
// so it should not be accessible here
System.out.println("I have " + x); // CE 13
}
}
aspect SampleAspect {
private interface Tag {};
private int Tag.x = 0;
declare parents: VisiblePrivateInterfaceITDs implements Tag;
}
|