Multiple @ImportRuntimeHints
in the type hierarchy should be supported
#29361
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: aot
An issue related to Ahead-of-time processing
type: bug
A general bug
Milestone
RuntimeHintsBeanFactoryInitializationAotProcessor#extractFromBeanFactory
should be able to retrieve multiple annotations in the type hierarchy not just the first one as currently with the usage ofbeanFactory.findAnnotationOnBean(beanName, ImportRuntimeHints.class)
. We should be able to get the desired behavior usingMergedAnnotations.from(beanType, SearchStrategy.TYPE_HIERARCHY).stream()
.This issue impacts
WebFluxEndpointHandlerMapping
,WebMvcEndpointHandlerMapping
,CloudFoundryWebEndpointServletHandlerMapping
andCloudFoundryWebFluxEndpointHandlerMapping
in Spring Boot, and maybe other use cases not yet identified.The text was updated successfully, but these errors were encountered: