javac ast indices: do not catch control flow exceptions

This commit is contained in:
Dmitry Batkovich
2017-05-04 14:43:38 +03:00
parent 0518af41bb
commit f699ac47ee
@@ -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);