mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-07-25 14:24:48 +02:00
20 lines
491 B
Java
20 lines
491 B
Java
// 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); }
|
|
}
|