From afc0c893c74b1b7d865cf2c4e60244b6995cd5f4 Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 25 Nov 2009 18:12:34 +0000 Subject: [PATCH] silently catch non-critical IOException in groovyc --- .../groovy/compiler/generator/GroovycStubGenerator.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/compiler/generator/GroovycStubGenerator.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/compiler/generator/GroovycStubGenerator.java index 1eda5cea10d0..a02a2b9ec3b6 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/compiler/generator/GroovycStubGenerator.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/compiler/generator/GroovycStubGenerator.java @@ -141,7 +141,13 @@ public class GroovycStubGenerator extends GroovyCompilerBase { deleteChildrenRecursively(child); } TranslatingCompilerFilesMonitor.removeSourceInfo(child); - child.delete(this); + try { + child.delete(this); + } + catch (IOException ignored) { + //may be a leaked handle from some non-completely terminated compiler process, or compiler caches, or something else + //not a big deal, we'll delete it next time + } } } }.execute();