Skip to content

Commit 65743a6

Browse files
committed
Deep BeanCurrentlyInCreationException check in getTypeForFactoryBean
Issue: SPR-16427 (cherry picked from commit 7772b91)
1 parent f187ca6 commit 65743a6

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/AbstractBeanFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1509,7 +1509,7 @@ protected Class<?> getTypeForFactoryBean(String beanName, RootBeanDefinition mbd
15091509
return getTypeForFactoryBean(factoryBean);
15101510
}
15111511
catch (BeanCreationException ex) {
1512-
if (ex instanceof BeanCurrentlyInCreationException) {
1512+
if (ex.contains(BeanCurrentlyInCreationException.class)) {
15131513
if (logger.isDebugEnabled()) {
15141514
logger.debug("Bean currently in creation on FactoryBean type check: " + ex);
15151515
}

0 commit comments

Comments
 (0)