changeset 2365:0830284d56fb

jdk-8009360 by Steve Sides: make a test case actually fail.
author wmdietl
date Tue, 26 Mar 2013 18:32:11 +0100
parents 9d59efc8cb4f
children 0826f546fbdd
files test/tools/javac/annotations/typeAnnotations/failures/T8009360.java
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/javac/annotations/typeAnnotations/failures/T8009360.java	Tue Mar 26 18:28:01 2013 +0100
+++ b/test/tools/javac/annotations/typeAnnotations/failures/T8009360.java	Tue Mar 26 18:32:11 2013 +0100
@@ -35,9 +35,13 @@
     Object mtest( Test1<T> t){ return null; }
     public void test() {
         mtest( new Test1<T>() {
-                @A String odata1 = "test";
+                @A String data1 = "test";    //ok
+                @A @A String data2 = "test"; //ok
+                @A @B String data3 = "test"; //AssertionError
            });
    }
 }
 
-@Target({TYPE_USE,FIELD}) @interface A { }
+@Target({TYPE_USE,FIELD}) @Repeatable( AC.class) @interface A { }
+@Target({TYPE_USE,FIELD}) @interface AC { A[] value(); }
+@Target({TYPE_USE}) @interface B { }