Fix creating of the script definition from legacy template

adding classpath needed to load template and related class to the
appropriate host configuration
fixes tests
This commit is contained in:
Ilya Chernikov
2019-07-05 14:25:21 +02:00
parent d3810bfcae
commit a96a938f87
3 changed files with 13 additions and 6 deletions
@@ -104,7 +104,7 @@ class JvmGetScriptingClass : GetScriptingClass, Serializable {
return try {
(classLoader ?: ClassLoader.getSystemClassLoader()).loadClass(classType.typeName).kotlin
} catch (e: Throwable) {
throw IllegalArgumentException("unable to load class $classType", e)
throw IllegalArgumentException("unable to load class ${classType.typeName}", e)
}
}