ScriptName now returns FqName, fully qualified with package name. Update usages and convert to internal format as needed.

This commit is contained in:
Ilya Ryzhenkov
2014-03-17 23:19:22 +04:00
committed by Andrey Breslav
parent d08f2bc7ab
commit 9239fa2ece
7 changed files with 34 additions and 9 deletions
@@ -235,7 +235,8 @@ public class KotlinToJVMBytecodeCompiler {
}, AllModules.class.getClassLoader())
);
return classLoader.loadClass(ScriptNameUtil.classNameForScript(environment.getSourceFiles().get(0)));
FqName nameForScript = ScriptNameUtil.classNameForScript(environment.getSourceFiles().get(0));
return classLoader.loadClass(nameForScript.asString());
}
catch (Exception e) {
throw new RuntimeException("Failed to evaluate script: " + e, e);