org.aspectj/tests/migration/Aspect111.java
2005-01-07 13:46:12 +00:00

22 lines
514 B
Java

// Aspect should be built with AspectJ 1.1.1 into aspects111.jar
// We are testing the new AspectJ can recognize old aspects
public aspect Aspect111 {
pointcut anyMethodCall(): execution(* main(..));
pointcut setIntField(): set(int *);
pointcut complex(): call(* *(..)) && cflow(execution(* toplevel(..)));
pointcut moreComplex(): call(* *(..)) && !(call(* foo*(..)) || call(* bar*(..)));
before(): complex() { }
after(): complex() { }
void around(): anyMethodCall() {
proceed();
}
}