aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs190
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2018-02-28 12:07:51 -0800
committerAndy Clement <aclement@pivotal.io>2018-02-28 12:07:51 -0800
commit6b620ba3aa4b0c9d29560dfa42f8c67dcafb1229 (patch)
treef5876caf48ddc2ed3bc1c1a039de8b95977c2291 /tests/bugs190
parent4d129674586cbf6cef232e5ba1a74e75708103b1 (diff)
downloadaspectj-6b620ba3aa4b0c9d29560dfa42f8c67dcafb1229.tar.gz
aspectj-6b620ba3aa4b0c9d29560dfa42f8c67dcafb1229.zip
Fix for Bug 531819 - Negative parameter annotation matching not behaving
Diffstat (limited to 'tests/bugs190')
-rw-r--r--tests/bugs190/paramannos/Code.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/bugs190/paramannos/Code.java b/tests/bugs190/paramannos/Code.java
new file mode 100644
index 000000000..1ab184346
--- /dev/null
+++ b/tests/bugs190/paramannos/Code.java
@@ -0,0 +1,13 @@
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface Anno {}
+
+public class Code {
+ public Code(@Anno String boo) {}
+ public Code(Object boo) {}
+}
+
+aspect X {
+ before(): execution(new(!@Anno (*))) { }
+}