Create composite exception tracker when delegating ModuleResolverProvider

Avoid dropping delegate caches when exception (i.e. ProcessCancelled) is thrown in delegating provider
This commit is contained in:
Pavel V. Talanov
2014-09-16 18:41:23 +04:00
parent 68201c3e86
commit 8d89ac897a
4 changed files with 46 additions and 3 deletions
@@ -421,4 +421,11 @@ public class LockBasedStorageManager implements StorageManager {
}
}
@NotNull
public static LockBasedStorageManager createDelegatingWithSameLock(
@NotNull LockBasedStorageManager base,
@NotNull ExceptionHandlingStrategy newStrategy
) {
return new LockBasedStorageManager(getPointOfConstruction(), newStrategy, base.lock);
}
}