aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features1611/declareMinus/Unsupported.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/features1611/declareMinus/Unsupported.java')
-rw-r--r--tests/features1611/declareMinus/Unsupported.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/features1611/declareMinus/Unsupported.java b/tests/features1611/declareMinus/Unsupported.java
new file mode 100644
index 000000000..4275b5aec
--- /dev/null
+++ b/tests/features1611/declareMinus/Unsupported.java
@@ -0,0 +1,24 @@
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface Anno {
+ String foo();
+}
+
+@Anno(foo="anc")
+aspect X {
+
+ //declare @method: int i: -@Anno;
+ declare @method: int i(..): -@Anno;
+ declare @type: X: -@Anno;
+ declare @field: int i: -@Anno(foo="abc");
+
+ public static void main(String[] args) throws Exception {
+ if (X.class.getDeclaredField("i").getAnnotation(Anno.class)==null) {
+ System.out.println("not there");
+ } else {
+ System.out.println("failed");
+ }
+ }
+} \ No newline at end of file