aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs169/pr287613/DAMethod2.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs169/pr287613/DAMethod2.java')
-rw-r--r--tests/bugs169/pr287613/DAMethod2.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/bugs169/pr287613/DAMethod2.java b/tests/bugs169/pr287613/DAMethod2.java
new file mode 100644
index 000000000..600a66251
--- /dev/null
+++ b/tests/bugs169/pr287613/DAMethod2.java
@@ -0,0 +1,29 @@
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface Annot {}
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface Foo {}
+
+class Person {
+ @Foo
+ public void foo() {}
+ @Foo
+ public boolean bar() {return false;}
+ @Foo
+ public String getString() { return null; }
+ @Foo
+ public boolean isSet() { return false; }
+ @Foo
+ public void isNotReturningBoolean() { }
+
+ public void getin() {}
+}
+
+aspect DAMethod2 {
+
+ declare @method: !(* *.get*()) && !(* aspectOf(..)) && !(* hasAspect(..)): @Annot;
+
+ declare @method: !@Foo * *(..) && !(* aspectOf(..)) && !(* hasAspect(..)): @Annot;
+}