Wed, 23 Jan 2013 13:27:24 -0800
8006775: JSR 308: Compiler changes in JDK8
Reviewed-by: jjg
Contributed-by: mernst@cs.washington.edu, wmdietl@cs.washington.edu, mpapi@csail.mit.edu, mahmood@notnoop.com
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 */
9 package name.@A p1.p2;
11 class AnnotatedPackage1 { }
13 @interface A { }