summaryrefslogtreecommitdiffstats
path: root/tests/new/CFlowNoAdvice.java
blob: b491866f0618a42722baa39b5da5ac36b2fef9af (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.testing.Tester;

public class CFlowNoAdvice {
    public static void main(String[] args) {
        new Foo().bar();
        new Foo().bar();
    }
}

class Foo {
    void bar() {
        Tester.check(CFlowAspect.aspectOf() != null, "cflow created");
    }
}




aspect CFlowAspect percflow(CFlowAspect.contexts()) {
    pointcut contexts(): target(Foo) && call(void bar());
}