/ spring-framework Public
BeanFactory.getType(String) may not return a Proxy class depending on the order of bean declarations [SPR-9638] #14272
Issues in core modules (aop, beans, core, context, expression)
An outdated, unresolved issue that's closed in bulk as part of a cleaning process
Rossen Stoyanchev opened SPR-9638 and commented
When one bean tries to find the type of another, via
BeanFactory.getType(String), from an initialization method (e.g.
InitializingBean), and when the target bean type is expected to be a JDK dynamic proxy, the actual type returned varies depending on whether the target bean is declared before or after the bean interrogating its type.
This is the mechanism used in Spring MVC to discover and cache
@RequestMappingmethods to invoke. Hence it's necessary to the presence of JDK proxies.
2 votes, 6 watchers
The text was updated successfully, but these errors were encountered: