blob: c99919e883ac51420be22674c6d0be9859c40a38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
public class GenericType2<V extends Integer> {
public GenericType2(V value) {}
public void foo() {}
protected void getValue(V aV) {
}
public static void main(String[] args) {
new GenericType2<Integer>(null).foo();
}
}
aspect SomeAspect {
before(GenericType2 t): call(* GenericType2.foo()) && target(t) {
// Indirect call to generic method produces a NoSuchMethodError
t.callGenericMethod();
}
private void GenericType2.callGenericMethod() {
getValue(new Integer(45));
}
}
|