RuntimeHintsBeanFactoryInitializationAotProcessor#extractFromBeanFactory
should be able to retrieve multiple annotations in the type hierarchy not just the first one as currently with the usage of beanFactory.findAnnotationOnBean(beanName, ImportRuntimeHints.class)
. We should be able to get the desired behavior using MergedAnnotations.from(beanType, SearchStrategy.TYPE_HIERARCHY).stream()
.
This issue impacts WebFluxEndpointHandlerMapping
, WebMvcEndpointHandlerMapping
, CloudFoundryWebEndpointServletHandlerMapping
and CloudFoundryWebFluxEndpointHandlerMapping
in Spring Boot, and maybe other use cases not yet identified.