blob: 14740403a1416e1d0c39f623a85d6ca32be1e3f2 (
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
26
27
28
29
30
31
|
public class PointcutInGenericClassExample<T> {
public pointcut foo() : execution(* T.*(..));
}
aspect A {
declare warning : PointcutInGenericClassExample<C>.foo()
: "parameterized with C";
declare warning : PointcutInGenericClassExample<D>.foo()
: "parameterized with D";
// declare warning : PointcutInGenericClassExample.foo()
// : "raw";
}
class C {
void bar() {}
}
class D {
void goo() {}
}
|