Java versions before 11 (?) have multiple bugs in the annotation parser (e.g. this one) causing it to lose annotations on nested types.
It is in some cases possible to recover the lost class-level annotations when transforming a type to its canonical form, and GenericTypeReflector#toCanonical should take advantage of these mitigations where applicable.
Java versions before 11 (?) have multiple bugs in the annotation parser (e.g. this one) causing it to lose annotations on nested types.
It is in some cases possible to recover the lost class-level annotations when transforming a type to its canonical form, and
GenericTypeReflector#toCanonical
should take advantage of these mitigations where applicable.