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

Fri, 03 May 2013 09:56:56 -0700

author
jjg
date
Fri, 03 May 2013 09:56:56 -0700
changeset 1721
abd153854f16
parent 1521
71f35e4b93a5
child 2134
b0c086cd4520
permissions
-rw-r--r--

8012728: Normalize @ignore comments on langtools tests
Reviewed-by: vromero, mcimadamore

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

mercurial