comparison: test/tools/javac/annotations/typeAnnotations/failures/AnnotatedPackage1.java
test/tools/javac/annotations/typeAnnotations/failures/AnnotatedPackage1.java
- changeset 1521
- 71f35e4b93a5
- child 2134
- b0c086cd4520
equal
deleted
inserted
replaced
|
1 /* |
|
2 * @test /nodynamiccopyright/ |
|
3 * @bug 8006775 |
|
4 * @summary Package declarations cannot use annotations. |
|
5 * @author Werner Dietl |
|
6 * @compile/fail/ref=AnnotatedPackage1.out -XDrawDiagnostics AnnotatedPackage1.java |
|
7 */ |
|
8 |
|
9 package name.@A p1.p2; |
|
10 |
|
11 class AnnotatedPackage1 { } |
|
12 |
|
13 @interface A { } |