langtools/test/tools/javac/annotations/typeAnnotations/failures/TypeVariableCycleTest.java
changeset 21041 99f5e5e97425
parent 19660 7cc9663100f1
equal deleted inserted replaced
21040:3e32f68d2151 21041:99f5e5e97425
    33 
    33 
    34 import java.lang.annotation.*;
    34 import java.lang.annotation.*;
    35 
    35 
    36 class TypeVariableCycleTest<CTV> {
    36 class TypeVariableCycleTest<CTV> {
    37     <MTV extends  @TA CTV> MTV cast(CTV p) {
    37     <MTV extends  @TA CTV> MTV cast(CTV p) {
    38         return (@TA MTV) p;
    38         return (@TB MTV) p;
    39     }
    39     }
    40 }
    40 }
    41 
    41 
    42 @Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
    42 @Target(ElementType.TYPE_USE)
    43 @interface TA {}
    43 @interface TA {}
    44 
    44 
       
    45 @Target(ElementType.TYPE_USE)
       
    46 @interface TB {}