AnnotatedImport.java revision 2453:3dfd962149b2
18870Srgrimes/*
250476Speter * @test /nodynamiccopyright/
38870Srgrimes * @bug 8006775 8027262
42116Sjkh * @summary Import clauses cannot use annotations.
52116Sjkh * @author Werner Dietl
68870Srgrimes * @compile/fail/ref=AnnotatedImport.out -XDrawDiagnostics AnnotatedImport.java
72116Sjkh */
82116Sjkh
98870Srgrimesimport java.lang.annotation.*;
102116Sjkhimport java.@A util.List;
112116Sjkhimport @A java.util.Map;
128870Srgrimesimport java.util.@A HashMap;
138870Srgrimes
142116Sjkhclass AnnotatedImport { }
152116Sjkh
162116Sjkh@Target(ElementType.TYPE_USE)
172116Sjkh@interface A { }
188870Srgrimes