blob: ebb7afcc5962cd07f9724aa2cd35d09ab3cf61d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
public class Pr114495 {
public static void main(String[] args) {
C.go();
}
static class C {
static void go() {}
}
}
abstract aspect AA_ParameterizedTypeInPointcut<Target> {
pointcut going() :call(void Target.go()) ;
before() : going() {
System.out.println("AA.going()");
}
}
aspect A_ParameterizedTypeInPointcut
extends AA_ParameterizedTypeInPointcut<Pr114495.C> {
declare warning : going() : "going()"; // works fine
before() : going() { // advice not applied
System.out.println("A.going()");
}
}
|