don't report exception if trying to update jar to the same file (this can happen if the version of the plugin is different from the version of the runtime it bundles; in that case, we've already messed up and there is no value in spamming EA with exceptions) (EA-73451 - IAE: KotlinRuntimeLibraryUtil.replaceFile)
This commit is contained in:
@@ -256,7 +256,7 @@ public class KotlinRuntimeLibraryUtil {
|
||||
File libraryJarPath = new File(localPath);
|
||||
|
||||
if (FileUtil.filesEqual(updatedFile, libraryJarPath)) {
|
||||
throw new IllegalArgumentException("Shouldn't be called for updating same file: " + updatedFile);
|
||||
return;
|
||||
}
|
||||
|
||||
FileUtil.copy(updatedFile, libraryJarPath);
|
||||
|
||||
Reference in New Issue
Block a user