Closed
Description
Affects: 5.3.x
DefaultListableBeanFactory
's implementation of findAnnotationOnBean
calls getType(String)
which allows factory bean init. Assuming that it's intentional for findAnnotationOnBean
to initialize factory beans, would it be possible to overload the method with a variant that does not do so? This would help to fix spring-projects/spring-boot#28977 where we're looking for an annotation in a bean factory post-processor.