From 380d7add9f628959fe1eeaa072454a08eacc7ea9 Mon Sep 17 00:00:00 2001 From: Alex Tkachman Date: Thu, 2 Aug 2012 07:27:15 +0300 Subject: [PATCH] another attempt to fix broken (windows) cli test on public server --- .../jet/cli/jvm/compiler/KotlinToJVMBytecodeCompiler.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/compiler/cli/src/org/jetbrains/jet/cli/jvm/compiler/KotlinToJVMBytecodeCompiler.java b/compiler/cli/src/org/jetbrains/jet/cli/jvm/compiler/KotlinToJVMBytecodeCompiler.java index 09e93ecc26d..bbdbbbc91ca 100644 --- a/compiler/cli/src/org/jetbrains/jet/cli/jvm/compiler/KotlinToJVMBytecodeCompiler.java +++ b/compiler/cli/src/org/jetbrains/jet/cli/jvm/compiler/KotlinToJVMBytecodeCompiler.java @@ -407,13 +407,7 @@ public class KotlinToJVMBytecodeCompiler { if(loader instanceof URLClassLoader) { for (URL url : ((URLClassLoader) loader).getURLs()) { - String urlFile; - try { - urlFile = url.toURI().getPath(); - } - catch (URISyntaxException e) { - throw ExceptionUtils.rethrow(e); - } + String urlFile = url.getPath(); File file = new File(urlFile); if(file.exists() && (file.isDirectory() || file.getName().endsWith(".jar"))) { files.add(file);