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

Issue: SPR-11951
(cherry picked from commit 6c41cc3)
This commit is contained in:
Juergen Hoeller
2014-07-04 22:30:19 +02:00
parent d10220edf8
commit 83a7deb594

View File

@@ -377,7 +377,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;