summaryrefslogtreecommitdiffstats
path: root/tests/java5/annotations/within/PlainWithinTests.java
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-01-05 13:21:27 +0000
committeracolyer <acolyer>2005-01-05 13:21:27 +0000
commitf3fcc800aa5f1cb7274df9c8d5f810a0401b8bc3 (patch)
tree1178300644e21d5aca86e77116a14c6fedc54018 /tests/java5/annotations/within/PlainWithinTests.java
parent38836534d692da64a69bcd741129d4d103e78973 (diff)
downloadaspectj-f3fcc800aa5f1cb7274df9c8d5f810a0401b8bc3.tar.gz
aspectj-f3fcc800aa5f1cb7274df9c8d5f810a0401b8bc3.zip
extra test resources for within(@Foo *) tests
Diffstat (limited to 'tests/java5/annotations/within/PlainWithinTests.java')
-rw-r--r--tests/java5/annotations/within/PlainWithinTests.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/java5/annotations/within/PlainWithinTests.java b/tests/java5/annotations/within/PlainWithinTests.java
new file mode 100644
index 000000000..087356a20
--- /dev/null
+++ b/tests/java5/annotations/within/PlainWithinTests.java
@@ -0,0 +1,12 @@
+public aspect PlainWithinTests {
+
+ // CW L 21
+ declare warning : execution(* foo()) && within(@MyAnnotation *)
+ : "positive within match on annotation";
+
+ // CW L25
+ declare warning : execution(* foo()) && !within(@MyAnnotation *)
+ : "negative within match on annotation";
+
+
+} \ No newline at end of file