Browse Source

Deep BeanCurrentlyInCreationException check in getTypeForFactoryBean

Issue: SPR-16427

(cherry picked from commit 7772b91)
pull/1723/head
Juergen Hoeller 8 years ago
parent
commit
65743a68e6
  1. 2
      spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java

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

@ -1509,7 +1509,7 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp @@ -1509,7 +1509,7 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
return getTypeForFactoryBean(factoryBean);
}
catch (BeanCreationException ex) {
if (ex instanceof BeanCurrentlyInCreationException) {
if (ex.contains(BeanCurrentlyInCreationException.class)) {
if (logger.isDebugEnabled()) {
logger.debug("Bean currently in creation on FactoryBean type check: " + ex);
}

Loading…
Cancel
Save