summaryrefslogtreecommitdiffstats
path: root/tests/bugs/interfaceDefinition/pack/DefineInterface.java
blob: 2fab84f746fcc603f1a18caf62f22cda127f2e77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package pack;

import org.aspectj.testing.Tester;

public aspect DefineInterface {
    declare parents: InterfaceDefinition.C implements MyInterface;
    static {
        Tester.expectEvent("m()");
    }
    public void MyInterface.m() {
        Tester.event("m()");
    }
    before(MyInterface targ) : target(targ) && call(void run()) {
        targ.m();
    }
    after() returning : execution(void main(String[])) {
        Tester.checkAllEvents();
    }
}