diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/types/JetStandardLibrary.java b/compiler/frontend/src/org/jetbrains/jet/lang/types/JetStandardLibrary.java index 6f103c5fec7..02f8c9cd427 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/types/JetStandardLibrary.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/types/JetStandardLibrary.java @@ -1,5 +1,6 @@ package org.jetbrains.jet.lang.types; +import com.intellij.openapi.progress.ProcessCanceledException; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.io.FileUtil; import com.intellij.psi.PsiFileFactory; @@ -31,6 +32,8 @@ public class JetStandardLibrary { // TODO : consider releasing this memory private static JetStandardLibrary cachedLibrary = null; + // A temporary try to find a reason of KT-224 + private static int wasProcessCanceledException = 0; // private static final Map standardLibraryCache = new HashMap(); // TODO : double checked locking @@ -117,6 +120,9 @@ public class JetStandardLibrary { initStdClasses(); } catch (IOException e) { throw new IllegalStateException(e); + } catch (ProcessCanceledException e) { + wasProcessCanceledException++; + throw e; } }