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] });