您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }