Skip to content

Commit 7772b91

Browse files
committed
Deep BeanCurrentlyInCreationException check in getTypeForFactoryBean
Issue: SPR-16427
1 parent 32f6cce commit 7772b91

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
@@ -1515,7 +1515,7 @@ protected Class<?> getTypeForFactoryBean(String beanName, RootBeanDefinition mbd
15151515
return getTypeForFactoryBean(factoryBean);
15161516
}
15171517
catch (BeanCreationException ex) {
1518-
if (ex instanceof BeanCurrentlyInCreationException) {
1518+
if (ex.contains(BeanCurrentlyInCreationException.class)) {
15191519
if (logger.isDebugEnabled()) {
15201520
logger.debug("Bean currently in creation on FactoryBean type check: " + ex);
15211521
}

0 commit comments

Comments
 (0)