How to get TYPE_USE annotations on a generic bound
问题 I have this case: public class SomeClass<T> { public <@A1 S extends @A2 T> @A3 S myMethod() { ...} } and I'm trying to get the @A2 annotation on the bound T . This is what I'm seeing, assuming myMethod is SomeClass.class.getDeclaredMethod("myMethod") . Type casts removed for readability. myMethod.getGenericReturnType().getAnnotations() returns @A1 (as expected, I guess) myMethod.getGenericReturnType().getBounds()[0].getAnnotations() returns nothing (?? shoudn't it be @A2 ??) myMethod