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.

Z.java 376B

1234567891011121314151617
  1. interface X {
  2. static aspect IMPL {
  3. public void X.test() { System.out.println("X.test()"); }
  4. }
  5. }
  6. interface Y {
  7. static aspect IMPL {
  8. declare precedence : X.IMPL, Y.IMPL;
  9. public void Y.test() { System.out.println("Y.test()"); }
  10. }
  11. }
  12. public class Z implements X, Y {
  13. public static void main(String[] args) throws Exception { new Z().test(); }
  14. }