mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 05:49:04 +00:00
Deep BeanCurrentlyInCreationException check in getTypeForFactoryBean
Issue: SPR-16427
This commit is contained in:
+1
-1
@@ -1515,7 +1515,7 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
|
|||||||
return getTypeForFactoryBean(factoryBean);
|
return getTypeForFactoryBean(factoryBean);
|
||||||
}
|
}
|
||||||
catch (BeanCreationException ex) {
|
catch (BeanCreationException ex) {
|
||||||
if (ex instanceof BeanCurrentlyInCreationException) {
|
if (ex.contains(BeanCurrentlyInCreationException.class)) {
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
logger.debug("Bean currently in creation on FactoryBean type check: " + ex);
|
logger.debug("Bean currently in creation on FactoryBean type check: " + ex);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user