author | jjg |
Tue, 15 Oct 2013 15:57:13 -0700 | |
changeset 21041 | 99f5e5e97425 |
parent 15385 | ee1eebe7e210 |
child 24895 | dd091d389fbf |
permissions | -rw-r--r-- |
15385 | 1 |
/* |
2 |
* @test /nodynamiccopyright/ |
|
3 |
* @bug 8006775 |
|
4 |
* @summary Import clauses cannot use annotations. |
|
5 |
* @author Werner Dietl |
|
21041 | 6 |
* @ignore |
15385 | 7 |
* @compile/fail/ref=AnnotatedImport.out -XDrawDiagnostics AnnotatedImport.java |
8 |
*/ |
|
9 |
||
21041 | 10 |
import java.lang.annotation.*; |
15385 | 11 |
import java.@A util.List; |
12 |
import @A java.util.Map; |
|
13 |
import java.util.@A HashMap; |
|
14 |
||
15 |
class AnnotatedImport { } |
|
16 |
||
21041 | 17 |
@Target(ElementType.TYPE_USE) |
15385 | 18 |
@interface A { } |