blob: cd2640c74fe12297bfb3be48bdadf79f76eea309 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
public aspect RawSignatureMatching {
// 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.asInt(Number)) :
"execution(* GenericInterface.asInt(Number))";
}
|