Skip to content

Commit

Permalink
ConstructorResolver's exception message on null factory-bean hints at…
Browse files Browse the repository at this point in the history
… potential BeanPostProcessor involvement

Issue: SPR-11951
  • Loading branch information
jhoeller committed Jul 4, 2014
1 parent 7a7641b commit 6c41cc3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ public BeanWrapper instantiateUsingFactoryMethod(
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;
Expand Down

0 comments on commit 6c41cc3

Please sign in to comment.