aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/StaticMethodsShouldNotReceiveInstanceofAdvice.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/new/StaticMethodsShouldNotReceiveInstanceofAdvice.java')
-rw-r--r--tests/new/StaticMethodsShouldNotReceiveInstanceofAdvice.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/new/StaticMethodsShouldNotReceiveInstanceofAdvice.java b/tests/new/StaticMethodsShouldNotReceiveInstanceofAdvice.java
index 1bc6898a9..188eb651e 100644
--- a/tests/new/StaticMethodsShouldNotReceiveInstanceofAdvice.java
+++ b/tests/new/StaticMethodsShouldNotReceiveInstanceofAdvice.java
@@ -1,3 +1,4 @@
+import org.aspectj.lang.annotation.SuppressAjWarnings;
import org.aspectj.testing.*;
import java.util.*;
@@ -29,11 +30,17 @@ aspect PutsAdviceOnStaticMethods {
pointcut bad4(): target(*) && call(void ClassWithStaticMethods.staticMethod());
pointcut bad5(ClassWithStaticMethods c): target(c) && call(void staticMethod());
+ @SuppressAjWarnings("adviceDidNotMatch")
before(): bad0() { bad("bad0:" + thisJoinPoint); }
+ @SuppressAjWarnings("adviceDidNotMatch")
before(ClassWithStaticMethods c): bad1(c) { bad("bad1:" + thisJoinPoint); }
+ @SuppressAjWarnings("adviceDidNotMatch")
before(): bad2() { bad("bad2:" + thisJoinPoint); }
+ @SuppressAjWarnings("adviceDidNotMatch")
before(ClassWithStaticMethods c): bad3(c) { bad("bad3:" + thisJoinPoint); }
+ @SuppressAjWarnings("adviceDidNotMatch")
before(): bad4() { bad("bad4:" + thisJoinPoint); }
+ @SuppressAjWarnings("adviceDidNotMatch")
before(ClassWithStaticMethods c): bad5(c) { bad("bad5:" + thisJoinPoint); }
// This should run