diff options
Diffstat (limited to 'tests/java5/suppressedWarnings')
-rw-r--r-- | tests/java5/suppressedWarnings/SuppressionDuringMatching.aj | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/java5/suppressedWarnings/SuppressionDuringMatching.aj b/tests/java5/suppressedWarnings/SuppressionDuringMatching.aj new file mode 100644 index 000000000..0c0cfef62 --- /dev/null +++ b/tests/java5/suppressedWarnings/SuppressionDuringMatching.aj @@ -0,0 +1,46 @@ +import org.aspectj.lang.annotation.*; + +public aspect SuppressionDuringMatching { + +// // XLint:unmatchedSuperTypeInCall +// // XLint:adviceDidNotApply +// before() : call(* Sub.foo()) { +// +// } +// +// @SuppressAjWarnings +// before() : call(* Sub.foo()) { +// +// } +// +// // XLint:unmatchedSuperTypeInCall +// @SuppressAjWarnings("adviceDidNotApply") +// before() : call(* Sub.foo()) { +// +// } +// + + // XLint:adviceDidNotApply + @SuppressAjWarnings("unmatchedSuperTypeInCall") + before() : call(* Sub.foo()) { + + } + + +} + +class Super { + + public void foo() {} + + void bar() { + foo(); + } +} + +class Sub extends Super { + + void bar() { + foo(); + } +}
\ No newline at end of file |