aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs164/pr233032/A.java
blob: 6ec8c5ff21357203a3687c3646ccbf4f7b1d4e76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import org.aspectj.lang.*;
import org.aspectj.lang.annotation.*;

@Aspect("percflow(within(C))")
public class A {

  @Before("execution(* foo(..)) && cflow(execution(* bar(..)) && this(o))")
  public void m(Object o) {}

  public static void main(String[] argv) {
    new C().bar();
  }

}

class C {
  public void bar() {
    foo();
  }
  public void foo() {}
}