diff options
author | acolyer <acolyer> | 2004-08-04 12:04:41 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2004-08-04 12:04:41 +0000 |
commit | 0f211e17cac9b031ab8d9115f9030b3e65d3927a (patch) | |
tree | cabe16f0e367daaa4b28685e09f5b0bcd55bb43d /tests/base/test144/SuperStaticCallJoinPoint.java | |
parent | 9a051d348a240095e56ead5485c2dba8cf6ad4a7 (diff) | |
download | aspectj-0f211e17cac9b031ab8d9115f9030b3e65d3927a.tar.gz aspectj-0f211e17cac9b031ab8d9115f9030b3e65d3927a.zip |
Spring cleaning in the test suite. Docs for AjcTestCase and XMLBasedAjcTestCase
added in docs dir.
Diffstat (limited to 'tests/base/test144/SuperStaticCallJoinPoint.java')
-rw-r--r-- | tests/base/test144/SuperStaticCallJoinPoint.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/base/test144/SuperStaticCallJoinPoint.java b/tests/base/test144/SuperStaticCallJoinPoint.java new file mode 100644 index 000000000..5d75b8955 --- /dev/null +++ b/tests/base/test144/SuperStaticCallJoinPoint.java @@ -0,0 +1,25 @@ +import org.aspectj.testing.Tester; + +class Sup { + static void m() {} +} + +public class SuperStaticCallJoinPoint extends Sup { + static boolean ran = false; + public static void main(String[] args) { + new SuperStaticCallJoinPoint().foo(); + Tester.check(ran, "didn't run advice"); + } + void foo() { + super.m(); + } + static void m() { + throw new RuntimeException(); + } +} + +aspect A { + before(): this(SuperStaticCallJoinPoint) && call(void Sup.m()) { + SuperStaticCallJoinPoint.ran = true; + } +} |