aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs153
diff options
context:
space:
mode:
authoraclement <aclement>2006-10-03 15:20:44 +0000
committeraclement <aclement>2006-10-03 15:20:44 +0000
commit765c4be9a0945dba7c2c87104fec751ae7f26f2f (patch)
treeeddcde0bab6ee40290db9ab0efdc60dd14ec9ee8 /tests/bugs153
parent782ade25e6d68caf361f51a1e040edbd6855842b (diff)
downloadaspectj-765c4be9a0945dba7c2c87104fec751ae7f26f2f.tar.gz
aspectj-765c4be9a0945dba7c2c87104fec751ae7f26f2f.zip
153464 - testcase in progress
Diffstat (limited to 'tests/bugs153')
-rw-r--r--tests/bugs153/pr153464/Foo.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/bugs153/pr153464/Foo.java b/tests/bugs153/pr153464/Foo.java
new file mode 100644
index 000000000..1167e9bb4
--- /dev/null
+++ b/tests/bugs153/pr153464/Foo.java
@@ -0,0 +1,30 @@
+import java.lang.annotation.*;
+
+aspect TestAspect {
+ // works - Derived.func() omitted
+// declare warning : execution(@Annot * *(..)) && !within(@Annot *): "hi!";
+
+ // fails - Derived.func() not omitted
+ declare warning : execution(@Annot * *(..)) && within(!@Annot *) : "within includes negated annotation";
+ pointcut hasMethod() : hasmethod(@Annot * *(..));
+}
+
+
+class Base {
+ void func() { }
+}
+
+//@Annot
+class AnnotTest {
+ @Annot
+ class Derived extends Base {
+ @Annot void func() { }
+ }
+//
+ // class NoAnnotClass {
+ // @Annot void func() { }
+ //}
+}
+
+//@Retention(RetentionPolicy.RUNTIME)
+@interface Annot { };