blob: 16eebeba874b8e18ebdc63b9a9fc3426296fa65d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// for Bug#: 31423
import org.aspectj.testing.Tester;
public class CflowConcrete {
public static void main(String[] args) {
}
}
aspect TestAjc {
pointcut notMySelf(): !within(TestAjc) && !cflow(within(TestAjc));
pointcut eachCall(): notMySelf() && call(* *.*(..));
pointcut eachExecution(): notMySelf() && execution(* *.*(..)) ;
before(): eachCall() { System.out.println(thisJoinPoint); }
before(): eachExecution() { System.out.println(thisJoinPoint); }
}
|