ConstructorResolver's exception message on null factory-bean hints at potential BeanPostProcessor involvement

Issue: SPR-11951
This commit is contained in:
Juergen Hoeller
2014-07-04 22:30:19 +02:00
parent 7a7641bd23
commit 6c41cc354c

View File

@@ -370,7 +370,7 @@ class ConstructorResolver {
factoryBean = this.beanFactory.getBean(factoryBeanName);
if (factoryBean == null) {
throw new BeanCreationException(mbd.getResourceDescription(), beanName,
"factory-bean '" + factoryBeanName + "' returned null");
"factory-bean '" + factoryBeanName + "' (or a BeanPostProcessor involved) returned null");
}
factoryClass = factoryBean.getClass();
isStatic = false;