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.

One.java 324B

1234567891011
  1. // Should work fine, One gets Serializable
  2. public class One {
  3. public void m() {}
  4. public static void main(String []argv) {
  5. if (!(new One() instanceof java.io.Serializable)) System.err.println("declare parents failed");
  6. }
  7. }
  8. aspect X {
  9. declare parents: hasmethod(public void m()) implements java.io.Serializable;
  10. }