Fixed scipt execution classpath

This commit is contained in:
Michael Bogdanov
2015-06-15 16:35:06 +03:00
parent 71729031c1
commit 11ab2148b2
@@ -276,8 +276,7 @@ public class KotlinToJVMBytecodeCompiler {
}
//noinspection UnnecessaryFullyQualifiedName
classLoader = new GeneratedClassLoader(state.getFactory(),
new URLClassLoader(classPaths.toArray(new URL[classPaths.size()]),
kotlin.KotlinPackage.class.getClassLoader())
new URLClassLoader(classPaths.toArray(new URL[classPaths.size()]), null)
);
FqName nameForScript = ScriptNameUtil.classNameForScript(environment.getSourceFiles().get(0).getScript());