aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/suppressedWarnings
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-09-29 15:42:52 +0000
committeracolyer <acolyer>2005-09-29 15:42:52 +0000
commit81a07900d1e2c4db563d5b4a833b404ac51ee5bd (patch)
treeaa4901f0d6704d7b2464b439d27f1b4554555e86 /tests/java5/suppressedWarnings
parent5fdb986e1843518b4766c21b1be3b85af780731c (diff)
downloadaspectj-81a07900d1e2c4db563d5b4a833b404ac51ee5bd.tar.gz
aspectj-81a07900d1e2c4db563d5b4a833b404ac51ee5bd.zip
tests and fix for enh 108118, completes @SuppressAjWarnings implementation
Diffstat (limited to 'tests/java5/suppressedWarnings')
-rw-r--r--tests/java5/suppressedWarnings/SuppressionDuringMatching.aj46
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