From d236effed24e820f07d3f80e194c9987e525b747 Mon Sep 17 00:00:00 2001 From: svtk Date: Mon, 30 Jan 2012 14:58:18 +0400 Subject: [PATCH] Added fictitious variable as a try to find a reason of KT-224 --- .../org/jetbrains/jet/lang/types/JetStandardLibrary.java | 6 ++++++ 1 file changed, 6 insertions(+) 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; } }