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.

Basic2.java 342B

123456789101112131415161718192021222324252627
  1. public class Basic2 {
  2. public static void main(String []argv) {
  3. Basic2 b = new Basic2();
  4. if (!(b instanceof X.I)) throw new RuntimeException("Basic2 should implement I");
  5. }
  6. }
  7. aspect X {
  8. interface I {
  9. }
  10. public void I.m2() {
  11. }
  12. declare parents: Basic2 implements I;
  13. before(): execution(* *(..)) {
  14. }
  15. }