summaryrefslogtreecommitdiffstats
path: root/tests/bugs/InterPerCall.java
blob: 5ee4f821e1c1b8c5822257ed640caf37977dee7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
public class InterPerCall {
    public static void main(String[] args) {
        new D().m();
    }
}

class C {
}

class D extends C {
    public void m() { }
}

aspect A perthis(p1()) {
    pointcut p1(): execution(void D.m());
    pointcut p2(): execution(void C.m());
    
    before(): p2() {
        System.out.println("hello");
    }
}