1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/annotations/typeAnnotations/failures/Scopes.java Wed Apr 27 01:34:52 2016 +0800 1.3 @@ -0,0 +1,16 @@ 1.4 +/* 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 6843077 8006775 1.7 + * @summary Unqualified inner type annotation not in scope. 1.8 + * @author Mahmood Ali 1.9 + * @compile/fail/ref=Scopes.out -XDrawDiagnostics Scopes.java 1.10 + */ 1.11 +import java.lang.annotation.*; 1.12 + 1.13 +@InnerTA 1.14 +class Scopes<@InnerTA T extends @InnerTA Object> { 1.15 + // The simple name TA is not in scope on header of class. 1.16 + // One has to use @Scopes.TA. 1.17 + @Target(ElementType.TYPE_USE) 1.18 + @interface InnerTA { }; 1.19 +}