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.

Test2.java 529B

12345678910111213141516171819202122232425
  1. import java.lang.annotation.*;
  2. import java.lang.annotation.Target;
  3. public aspect Test2 {
  4. declare warning : execution(* *(@A (!(Object+)), ..)) : "mOne"; // f1
  5. declare warning : execution(* *(@A !String, ..)) : "mTwo"; // f3/f4
  6. void f1(@A int i) {} // 9
  7. void f2(int i) {} // 11
  8. void f3(@A P i) {}
  9. void f4(P i) {}
  10. void f5(Integer i) {}
  11. void f6(@A Integer i) {}
  12. @Retention(RetentionPolicy.RUNTIME)
  13. private static @interface A { }
  14. @A static class P {}
  15. }