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

changeset 2134
b0c086cd4520
parent 1978
7bf6313e1ced
child 2525
2eb010b6cb22
equal deleted inserted replaced
2133:19e8eebfbe52 2134:b0c086cd4520
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 {}

mercurial