AnnotatedImport.java revision 2133:b0c086cd4520
1/* 2 * @test /nodynamiccopyright/ 3 * @bug 8006775 4 * @summary Import clauses cannot use annotations. 5 * @author Werner Dietl 6 * @ignore 7 * @compile/fail/ref=AnnotatedImport.out -XDrawDiagnostics AnnotatedImport.java 8 */ 9 10import java.lang.annotation.*; 11import java.@A util.List; 12import @A java.util.Map; 13import java.util.@A HashMap; 14 15class AnnotatedImport { } 16 17@Target(ElementType.TYPE_USE) 18@interface A { } 19