rename: proceed renaming when one call site throws an exception (IDEA-230192)

the name of the member is already set anyway

GitOrigin-RevId: c5bfc0c297dd5ecda7df128eabe93998efeb08b7
This commit is contained in:
Anna Kozlova
2020-01-06 20:01:50 +00:00
committed by intellij-monorepo-bot
parent 646888518a
commit e2dd5682df
@@ -3,6 +3,7 @@ package com.intellij.refactoring.rename;
import com.intellij.codeInsight.ChangeContextUtil;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.progress.ProcessCanceledException;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Comparing;
import com.intellij.openapi.util.Pair;
@@ -85,6 +86,12 @@ public class RenameJavaClassProcessor extends RenamePsiElementProcessor {
catch (IncorrectOperationException e) {//fall back to old scheme
ref.handleElementRename(newName);
}
catch (ProcessCanceledException e) {
throw e;
}
catch (Throwable e) {
LOG.error(e);
}
}
}