test/tools/javac/typeAnnotations/failures/common/innertypeparams/InvalidLocation.java

changeset 733
c491eec0acc7
parent 720
5bb96781fb58
parent 732
534afdc92cdc
child 734
814561077c44
child 762
4f086529d05c
     1.1 --- a/test/tools/javac/typeAnnotations/failures/common/innertypeparams/InvalidLocation.java	Thu Nov 04 15:54:46 2010 -0700
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,15 +0,0 @@
     1.4 -/*
     1.5 - * @test /nodynamiccopyright/
     1.6 - * @bug 6843077
     1.7 - * @summary check for invalid annotatins given the target
     1.8 - * @author Mahmood Ali
     1.9 - * @compile/fail/ref=InvalidLocation.out -XDrawDiagnostics -source 1.7 InvalidLocation.java
    1.10 - */
    1.11 -class InvalidLocation {
    1.12 -  void innermethod() {
    1.13 -    class Inner<@A K> {}
    1.14 -  }
    1.15 -}
    1.16 -
    1.17 -@java.lang.annotation.Target(java.lang.annotation.ElementType.TYPE)
    1.18 -@interface A { }

mercurial