Merge branch '6.0.x'
# Conflicts: # spring-test/src/main/java/org/springframework/test/context/cache/DefaultCacheAwareContextLoaderDelegate.java
This commit is contained in:
commit
b4ba80b09e
|
|
@ -135,6 +135,7 @@ public class DefaultCacheAwareContextLoaderDelegate implements CacheAwareContext
|
|||
mergedConfig = replaceIfNecessary(mergedConfig);
|
||||
synchronized (this.contextCache) {
|
||||
ApplicationContext context = this.contextCache.get(mergedConfig);
|
||||
try {
|
||||
if (context == null) {
|
||||
Integer failureCount = this.contextCache.getFailureCount(mergedConfig);
|
||||
if (failureCount >= this.failureThreshold) {
|
||||
|
|
@ -183,8 +184,10 @@ public class DefaultCacheAwareContextLoaderDelegate implements CacheAwareContext
|
|||
System.identityHashCode(context), mergedConfig));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
finally {
|
||||
this.contextCache.logStatistics();
|
||||
}
|
||||
|
||||
return context;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue