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.

1234567891011121314151617181920212223242526
  1. import java.util.*;
  2. import java.lang.annotation.*;
  3. @Target(ElementType.TYPE_USE)
  4. @Retention(RetentionPolicy.CLASS)
  5. @interface Anno {}
  6. public class Code {
  7. public static void xxx(String []argv) {
  8. List<@Anno String> ls = new ArrayList<String>();
  9. System.out.println(ls);
  10. }
  11. public static void yyy(String []argv) {
  12. }
  13. public static void main(String []argv) {
  14. Code c = new Code();
  15. c.xxx(argv);
  16. System.out.println("works");
  17. }
  18. }
  19. //aspect X {
  20. // before(): execution(* main(..)) {}
  21. //}