You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Indirect.java 549B

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