aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new
diff options
context:
space:
mode:
Diffstat (limited to 'tests/new')
-rw-r--r--tests/new/SuperStaticCallJoinPoint.java25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/new/SuperStaticCallJoinPoint.java b/tests/new/SuperStaticCallJoinPoint.java
deleted file mode 100644
index 5d75b8955..000000000
--- a/tests/new/SuperStaticCallJoinPoint.java
+++ /dev/null
@@ -1,25 +0,0 @@
-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;
- }
-}