test/tools/javac/annotations/typeAnnotations/failures/AnnotatedPackage1.java

Sat, 13 Apr 2013 12:25:44 +0100

author
vromero
date
Sat, 13 Apr 2013 12:25:44 +0100
changeset 1690
76537856a54e
parent 1521
71f35e4b93a5
child 2134
b0c086cd4520
permissions
-rw-r--r--

8010659: Javac Crashes while building OpenJFX
Reviewed-by: jjg
Contributed-by: maurizio.cimadamore@oracle.com

jjg@1521 1 /*
jjg@1521 2 * @test /nodynamiccopyright/
jjg@1521 3 * @bug 8006775
jjg@1521 4 * @summary Package declarations cannot use annotations.
jjg@1521 5 * @author Werner Dietl
jjg@1521 6 * @compile/fail/ref=AnnotatedPackage1.out -XDrawDiagnostics AnnotatedPackage1.java
jjg@1521 7 */
jjg@1521 8
jjg@1521 9 package name.@A p1.p2;
jjg@1521 10
jjg@1521 11 class AnnotatedPackage1 { }
jjg@1521 12
jjg@1521 13 @interface A { }

mercurial