diff options
Diffstat (limited to 'tests/bugs/AfterStaticCall.java')
-rw-r--r-- | tests/bugs/AfterStaticCall.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/bugs/AfterStaticCall.java b/tests/bugs/AfterStaticCall.java new file mode 100644 index 000000000..fc3a5b76a --- /dev/null +++ b/tests/bugs/AfterStaticCall.java @@ -0,0 +1,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())"); + } +}
\ No newline at end of file |