You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CflowConcrete.java 491B

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