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.

ParameterizedVarArgMatch.aj 369B

1234567891011121314151617
  1. class Test1<E> {
  2. public void method1(E...args) {
  3. }
  4. }
  5. public aspect ParameterizedVarArgMatch {
  6. public static void main(String[] args) {
  7. new Test1<String>().method1("a","b","c");
  8. }
  9. after(Test1 test1, Object[] arg) returning:
  10. execution(* Test1.method1(Object...)) && target(test1) && args(arg) {
  11. System.out.println("got here");
  12. }
  13. }