fix failing CompileKotlinAgainstKotlinTest

This commit is contained in:
Alexander Udalov
2012-08-13 17:08:21 +04:00
parent 39f96b80fd
commit e5820722ec
@@ -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] });