From a82236e2ede460a8f617065271beef5863651ecb Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 7 May 2010 13:55:57 +0100 Subject: [PATCH] rethrow OutOfMemoryError --- .../jetbrains/plugins/groovy/dsl/GroovyDslFileIndex.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/dsl/GroovyDslFileIndex.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/dsl/GroovyDslFileIndex.java index cc4d1491e3a2..791908cfa842 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/dsl/GroovyDslFileIndex.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/dsl/GroovyDslFileIndex.java @@ -288,11 +288,17 @@ public class GroovyDslFileIndex extends ScalarIndexExtension { if (cause instanceof ProcessCanceledException) { throw (ProcessCanceledException)cause; } + if (cause instanceof OutOfMemoryError) { + throw (OutOfMemoryError)cause; + } handleDslError(e, project, dslFile); } catch (ProcessCanceledException e) { throw e; } + catch (OutOfMemoryError e) { + throw e; + } catch (Throwable e) { // To handle exceptions in definition script handleDslError(e, project, dslFile); }