summaryrefslogtreecommitdiffstats
path: root/tests/base/test144/SuperStaticCallJoinPoint.java
diff options
context:
space:
mode:
authoracolyer <acolyer>2004-08-04 12:04:41 +0000
committeracolyer <acolyer>2004-08-04 12:04:41 +0000
commit0f211e17cac9b031ab8d9115f9030b3e65d3927a (patch)
treecabe16f0e367daaa4b28685e09f5b0bcd55bb43d /tests/base/test144/SuperStaticCallJoinPoint.java
parent9a051d348a240095e56ead5485c2dba8cf6ad4a7 (diff)
downloadaspectj-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.java25
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;
+ }
+}