summaryrefslogtreecommitdiffstats
path: root/tests/migration/Aspect111.java
blob: 6537216aaca2adfbfa46285c2b75e57e06d1fbcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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();
  }
}