org.aspectj/tests/bugs/AfterStaticCall.java
wisberg 8312dfbc60 added test cases for old jitterbugs
moved passing tests from ajcTestsFailing to ajcTests
2002-12-20 04:54:45 +00:00

22 lines
482 B
Java

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())");
}
}