blob: 8df2f5acec2e7b605926f1e82869af16e1b1da93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
public class LazyTjpTest1 {
public void test1 () { }
public void test2 () { }
private static aspect Aspect2 {
// OK, no tjp used in the advice
void around () : execution(public void test1()) {
System.out.println("Aspect2.around() ");
proceed();
}
// Warning: tjp used in around advice so can't apply lazyTjp
void around () : execution(public void test2()) {
System.out.println("Aspect2.around() " + thisJoinPoint);
proceed();
}
}
}
|