@ -619,12 +619,11 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@@ -619,12 +619,11 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
finishRefresh();
}
catch(BeansExceptionex){
catch(RuntimeException|Errorex){
if(logger.isWarnEnabled()){
logger.warn("Exception encountered during context initialization - "+
"cancelling refresh attempt: "+ex);
}
// Destroy already created singletons to avoid dangling resources.
destroyBeans();
@ -974,7 +973,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@@ -974,7 +973,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
*afteranexceptiongotthrown.
*@paramextheexceptionthatledtothecancellation
*/
protectedvoidcancelRefresh(BeansExceptionex){
protectedvoidcancelRefresh(Throwableex){
this.active.set(false);
// Reset common introspection caches in Spring's core infrastructure.
@ -136,7 +136,7 @@ public abstract class AbstractRefreshableApplicationContext extends AbstractAppl
@@ -136,7 +136,7 @@ public abstract class AbstractRefreshableApplicationContext extends AbstractAppl
@ -297,7 +297,7 @@ public class GenericApplicationContext extends AbstractApplicationContext implem
@@ -297,7 +297,7 @@ public class GenericApplicationContext extends AbstractApplicationContext implem