mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
javac ast indices: do not catch control flow exceptions
This commit is contained in:
+3
-2
@@ -31,6 +31,7 @@ import com.intellij.openapi.compiler.CompilationStatusListener;
|
||||
import com.intellij.openapi.compiler.CompileContext;
|
||||
import com.intellij.openapi.compiler.CompileScope;
|
||||
import com.intellij.openapi.compiler.CompilerManager;
|
||||
import com.intellij.openapi.diagnostic.ControlFlowException;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.fileEditor.FileDocumentManager;
|
||||
import com.intellij.openapi.fileTypes.FileType;
|
||||
@@ -762,8 +763,8 @@ public class CompilerReferenceServiceImpl extends CompilerReferenceServiceEx imp
|
||||
|
||||
@Nullable
|
||||
private <T> T onException(@NotNull Exception e, @NotNull String actionName) {
|
||||
if (e instanceof ProcessCanceledException) {
|
||||
throw (ProcessCanceledException)e;
|
||||
if (e instanceof ControlFlowException) {
|
||||
throw (RuntimeException)e;
|
||||
}
|
||||
|
||||
LOG.error("an exception during " + actionName + " calculation", e);
|
||||
|
||||
Reference in New Issue
Block a user