@ -576,35 +576,36 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
@@ -576,35 +576,36 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
if(this.logger.isInfoEnabled()){
this.logger.info("Pre-instantiating singletons in "+this);
}
List<String>beanNames;
synchronized(this.beanDefinitionMap){
// Iterate over a copy to allow for init methods which in turn register new bean definitions.
// While this may not be part of the regular factory bootstrap, it does otherwise work fine.
@ -650,9 +651,9 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
@@ -650,9 +651,9 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
@ -668,9 +669,9 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
@@ -668,9 +669,9 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
}
this.beanDefinitionNames.remove(beanName);
this.frozenBeanDefinitionNames=null;
resetBeanDefinition(beanName);
}
resetBeanDefinition(beanName);
}
/**
@ -685,9 +686,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
@@ -685,9 +686,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
// Remove corresponding bean from singleton cache, if any. Shouldn't usually
// be necessary, rather just meant for overriding a context's default beans
// (e.g. the default StaticMessageSource in a StaticApplicationContext).
@ -98,7 +98,7 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
@@ -98,7 +98,7 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
/** List of suppressed Exceptions, available for associating related causes */
privateSet<Exception>suppressedExceptions;
@ -437,11 +437,12 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
@@ -437,11 +437,12 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
@ -113,7 +113,9 @@ public abstract class AbstractApplicationEventMulticaster implements Application
@@ -113,7 +113,9 @@ public abstract class AbstractApplicationEventMulticaster implements Application
@ -135,26 +137,30 @@ public abstract class AbstractApplicationEventMulticaster implements Application
@@ -135,26 +137,30 @@ public abstract class AbstractApplicationEventMulticaster implements Application