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.

Foo.java 410B

12345678910111213141516
  1. public class Foo {
  2. public void m(int i,@Anno String s,int j) {}
  3. public static void main(String []argv) {
  4. new Foo().m(1,"A",2);
  5. }
  6. }
  7. @interface Anno {}
  8. aspect X {
  9. before(): execution(* *(..,String,..)) {System.out.println("advice");}
  10. before(): execution(* *(..,@Anno (String),..)) {System.out.println("advice");}
  11. before(): execution(* *(*,@Anno (String),*)) {System.out.println("advice");}
  12. }