aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/ParameterizedVarArgMatch.aj
blob: 5f0bf3f44c4c4cf18022c13eac21dda7965b8cfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class Test1<E> {
    public void method1(E...args) {
    }
}

public aspect ParameterizedVarArgMatch {
	
	public static void main(String[] args) {
		new Test1<String>().method1("a","b","c");
	}
	
	
    after(Test1 test1, Object[] arg) returning: 
    	execution(* Test1.method1(Object...)) && target(test1) && args(arg) {
        System.out.println("got here");
    }
}