mirror da
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-26 05:57:44 +02:00
26 righe
319 B
Java
26 righe
319 B
Java
aspect BadReferences {
|
|
public void main(String[] args) {
|
|
int x = C.x;
|
|
|
|
Object o = new C.Inner();
|
|
}
|
|
}
|
|
|
|
|
|
class C implements I1, I2 {
|
|
}
|
|
|
|
interface I1 {
|
|
public static int x = 1;
|
|
|
|
public static class Inner {
|
|
}
|
|
}
|
|
interface I2 {
|
|
public static int x = 2;
|
|
|
|
public static class Inner {
|
|
}
|
|
}
|
|
|