@ -251,7 +251,6 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
@@ -251,7 +251,6 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
@ -266,7 +265,6 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
@@ -266,7 +265,6 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
Thread.currentThread().getName()+"\" while other thread holds "+
"singleton lock for other beans "+this.singletonsCurrentlyInCreation);
}
lenient=true;
this.lenientCreationLock.lock();
try{
this.singletonsInLenientCreation.add(beanName);
@ -327,7 +325,7 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
@@ -327,7 +325,7 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
// Try late locking for waiting on specific bean to be finished.
this.singletonLock.lock();
locked=true;
// Singleton object should have appeared in the meantime.
// Lock-created singleton object should have appeared in the meantime.
@ -341,8 +339,12 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
@@ -341,8 +339,12 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
this.suppressedExceptions=newLinkedHashSet<>();
}
try{
singletonObject=singletonFactory.getObject();
newSingleton=true;
// Leniently created singleton object could have appeared in the meantime.
// Has the singleton object implicitly appeared in the meantime ->
@ -386,15 +388,13 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
@@ -386,15 +388,13 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements