From e5820722ec37d8185f000504c30f91b11875be01 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Mon, 13 Aug 2012 17:08:21 +0400 Subject: [PATCH] fix failing CompileKotlinAgainstKotlinTest --- .../jet/jvm/compiler/CompileKotlinAgainstKotlinTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/tests/org/jetbrains/jet/jvm/compiler/CompileKotlinAgainstKotlinTest.java b/compiler/tests/org/jetbrains/jet/jvm/compiler/CompileKotlinAgainstKotlinTest.java index ecd3103cfe9..56b6a8a0ded 100644 --- a/compiler/tests/org/jetbrains/jet/jvm/compiler/CompileKotlinAgainstKotlinTest.java +++ b/compiler/tests/org/jetbrains/jet/jvm/compiler/CompileKotlinAgainstKotlinTest.java @@ -76,7 +76,10 @@ public class CompileKotlinAgainstKotlinTest extends TestCaseWithTmpdir { compileA(); compileB(); - URLClassLoader classLoader = new URLClassLoader(new URL[]{ aDir.toURI().toURL(), bDir.toURI().toURL() }); + URLClassLoader classLoader = new URLClassLoader( + new URL[]{ aDir.toURI().toURL(), bDir.toURI().toURL() }, + CompileKotlinAgainstKotlinTest.class.getClassLoader() + ); Class clazz = classLoader.loadClass("bbb.namespace"); Method main = clazz.getMethod("main", new Class[] { String[].class }); main.invoke(null, new Object[] { new String[0] });