You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider a BeanDefinition with a FactoryBean that is registered programmatically. As it doesn't have a factory method, the code currently uses the target type's package to generate the code.
This does not work very well for FactoryBean target types, that are intermediate layers and should not be considered as a good target location for such a code. Perhaps BeanRegistrationCodeFragments#getTarget could have a check to see if the target type is such a factory bean?
Consider a
BeanDefinition
with aFactoryBean
that is registered programmatically. As it doesn't have a factory method, the code currently uses the target type's package to generate the code.This does not work very well for
FactoryBean
target types, that are intermediate layers and should not be considered as a good target location for such a code. PerhapsBeanRegistrationCodeFragments#getTarget
could have a check to see if the target type is such a factory bean?See also #28809
The text was updated successfully, but these errors were encountered: