Overview
Although we have addressed similar issues in the past in #20609 and #21683, annotations on interface methods are still not found via the MergedAnnotations
API if the type hierarchy has unresolved generics.
The reason is that an unresolved generic will be resolved as null
by ResolvableType.resolve()
which is what we currently use in AnnotationsScanner.hasSameGenericTypeParameters(...)
.
Similarly, an annotation on a parameter in an interface method is not found via AnnotatedMethod
(and subclasses such as HandlerMethod
for Web MVC, WebFlux, and Messaging) if the type hierarchy has unresolved generics.
Related Issues
-
20609
-
21683