blob: 68e0f64a90101375b85f49ddaa1f52fedba799a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import java.io.Serializable;
import java.lang.reflect.Field;
public class Indirect implements I {
public static void main(String[] args) {
try {
Indirect b = (Indirect)Indirect.class.newInstance();
Field f = Indirect.class.getDeclaredField("serialVersionUID");
long l = f.getLong(b);
System.err.println("SerialVersionUID is "+l);
} catch (Exception e) {
System.err.println("Problem: "+e.toString());
}
}
}
interface I extends Serializable {}
aspect X {
before(): staticinitialization(Indirect) {}
}
|