1234567891011121314151617 |
- interface X {
- static aspect IMPL {
- public void X.test() { System.out.println("X.test()"); }
- }
- }
-
- interface Y {
- static aspect IMPL {
- declare precedence : Y.IMPL, X.IMPL;
-
- public void Y.test() { System.out.println("Y.test()"); }
- }
- }
-
- public class Z2 implements X, Y {
- public static void main(String[] args) throws Exception { new Z2().test(); }
- }
|