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.

1234567891011121314151617181920212223242526272829
  1. public aspect A {
  2. public static void a(Object... os) {}
  3. public static void b(String... ss) {}
  4. public static void c(Integer... is) {}
  5. public static void d(Object[] os) {}
  6. public static void e(String[] ss) {}
  7. public static void f(Integer[] is) {}
  8. before(Object[] args): call(* *(Object+...)) && args(args) {
  9. System.out.println("varargs "+thisJoinPoint);
  10. }
  11. before(Object[] args): call(* *(Object+[])) && args(args) {
  12. System.out.println("arrays "+thisJoinPoint);
  13. }
  14. public static void main(String []argv) {
  15. a();
  16. b();
  17. c();
  18. d(null);
  19. e(null);
  20. f(null);
  21. }
  22. }