mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user