aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/ajdk/MixedParameterizedAndTypeVariables.aj
blob: 3037253f5c7bc0fe66b295cbfa517561970c8efd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import java.util.List;
public aspect MixedParameterizedAndTypeVariables {
	
	declare warning : execution(List G.foo(List)) : "erasure match";
	declare warning : execution(List G.foo(List<String>)) : "mixed match";
	declare warning : execution(* *(List<String>)) : "params only match";
	declare warning : execution(List<Object> G.foo(List<String>)) : "wrong erasure";
		
}

class G<T> {
	
	List<T> foo(List<String> ls) { return null; }
	
}