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