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.

Aspect120.java 514B

123456789101112131415161718192021
  1. // Aspect should be built with AspectJ 1.2.0 into aspects120.jar
  2. // We are testing the new AspectJ can recognize old aspects
  3. public aspect Aspect120 {
  4. pointcut anyMethodCall(): execution(* main(..));
  5. pointcut setIntField(): set(int *);
  6. pointcut complex(): call(* *(..)) && cflow(execution(* toplevel(..)));
  7. pointcut moreComplex(): call(* *(..)) && !(call(* foo*(..)) || call(* bar*(..)));
  8. before(): complex() { }
  9. after(): complex() { }
  10. void around(): anyMethodCall() {
  11. proceed();
  12. }
  13. }