aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/pointcuts/RawTypeMatching.aj
blob: 32e80a2ff05b95fadfde15389ae8239c89af2a1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
public aspect RawTypeMatching {
	
	// tests that references to a generic or parameterized type are
	// always matched by a type pattern refering to the raw type form
	
	void someCode() {
		ConcreteImplementingClass cic = new ConcreteImplementingClass();
		cic.asInt(5.0d);  
		GenericImplementingClass<Long> gic = new GenericImplementingClass<Long>();
		gic.asInt(55L);   
	}
	
	declare warning : 
		execution(* GenericInterface.*(..)) :
		"execution(* GenericInterface.*(..))";
	
}