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.

Two.java 379B

123456789101112131415
  1. // Two.m() is ITD from another aspect
  2. public class Two {
  3. // public void m() {} --> gone to aspect
  4. public static void main(String []argv) {
  5. if (!(new Two() 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. }
  11. aspect Y {
  12. public void Two.m() {}
  13. }