1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/annotations/typeAnnotations/failures/common/wildcards/InvalidLocation.java Wed Apr 27 01:34:52 2016 +0800 1.3 @@ -0,0 +1,14 @@ 1.4 +/* 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 6843077 8006775 1.7 + * @summary check for invalid annotatins given the target 1.8 + * @author Mahmood Ali 1.9 + * @compile/fail/ref=InvalidLocation.out -XDrawDiagnostics InvalidLocation.java 1.10 + */ 1.11 + 1.12 +class InvalidLocation<K> { 1.13 + InvalidLocation<@A ?> l; 1.14 +} 1.15 + 1.16 +@java.lang.annotation.Target(java.lang.annotation.ElementType.TYPE) 1.17 +@interface A { }