aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/cflowAndJar/TestAspect.aj
blob: 78c93e86aa5dbe58fe41627a9df37c494113c564 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
public aspect TestAspect extends AbstractAspect{
  public pointcut directCall():
    execution(void Test.doSayHello(..))
    && cflow(execution(void Test.sayHello(..)))
  ;
  
  public pointcut badCall():
  	call(void Test.doSayHello(..)) && withincode(void Test.sayHello(..));

  void noteDirectCall() {
    sawDirectCall = true;
  }
  
  public static boolean sawDirectCall = false;
}