Skip to content

Commit 83a7deb

Browse files
committed
ConstructorResolver's exception message on null factory-bean hints at potential BeanPostProcessor involvement
Issue: SPR-11951 (cherry picked from commit 6c41cc3)
1 parent d10220e commit 83a7deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/support/ConstructorResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ public BeanWrapper instantiateUsingFactoryMethod(
377377
factoryBean = this.beanFactory.getBean(factoryBeanName);
378378
if (factoryBean == null) {
379379
throw new BeanCreationException(mbd.getResourceDescription(), beanName,
380-
"factory-bean '" + factoryBeanName + "' returned null");
380+
"factory-bean '" + factoryBeanName + "' (or a BeanPostProcessor involved) returned null");
381381
}
382382
factoryClass = factoryBean.getClass();
383383
isStatic = false;

0 commit comments

Comments
 (0)