aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/InterfaceConstructor.java4
-rw-r--r--tests/bugs/faultingInSource/SimpleTracing.java6
2 files changed, 7 insertions, 3 deletions
diff --git a/tests/bugs/InterfaceConstructor.java b/tests/bugs/InterfaceConstructor.java
index 9d10b2a6d..ce91e5093 100644
--- a/tests/bugs/InterfaceConstructor.java
+++ b/tests/bugs/InterfaceConstructor.java
@@ -1,3 +1,5 @@
+import org.aspectj.lang.annotation.SuppressAjWarnings;
+
interface I { }
public class InterfaceConstructor implements I {
@@ -7,7 +9,7 @@ public class InterfaceConstructor implements I {
}
aspect NoSuchJP {
- before(): execution(I.new(..)) { // error expected
+ @SuppressAjWarnings("adviceDidNotMatch") before(): execution(I.new(..)) { // error expected
// No constructor-execution on interface type
}
diff --git a/tests/bugs/faultingInSource/SimpleTracing.java b/tests/bugs/faultingInSource/SimpleTracing.java
index 231cac762..8744d5048 100644
--- a/tests/bugs/faultingInSource/SimpleTracing.java
+++ b/tests/bugs/faultingInSource/SimpleTracing.java
@@ -1,14 +1,16 @@
+import org.aspectj.lang.annotation.SuppressAjWarnings;
+
aspect SimpleTracing
{
pointcut traceCall():
call (void SampleClass.foo(..));
- before(): traceCall()
+ @SuppressAjWarnings("adviceDidNotMatch") before(): traceCall()
{
System.out.println ("Entering: " + thisJoinPoint);
}
- after(): traceCall()
+ @SuppressAjWarnings("adviceDidNotMatch") after(): traceCall()
{
System.out.println ("Exiting: " + thisJoinPoint);
}