blob: fc3a5b76a5bdce7770c281f050bd2af9fa27a2f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import org.aspectj.testing.Tester;
/** @testcase PR#900 after advice on static call jp */
public class AfterStaticCall {
public static void main(String[] args) {
Tester.expectEvent("foo()");
Tester.expectEvent("after() : call(void Test.foo())");
foo();
Tester.checkAllEvents();
}
public static void foo() {
Tester.event("foo()");
}
}
aspect LogFooCall {
after() : call(static void foo()) {
Tester.event("after() : call(void Test.foo())");
}
}
|