Fix classloader extraction from script template
fixes #KT-16699
This commit is contained in:
+1
-1
@@ -105,7 +105,7 @@ open class KotlinScriptDefinitionFromAnnotatedTemplate(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun makeScriptContents() = BasicScriptContents(file, getAnnotations = {
|
fun makeScriptContents() = BasicScriptContents(file, getAnnotations = {
|
||||||
val classLoader = template::class.java.classLoader
|
val classLoader = template.java.classLoader
|
||||||
try {
|
try {
|
||||||
getAnnotationEntries(file, project)
|
getAnnotationEntries(file, project)
|
||||||
.mapNotNull { psiAnn ->
|
.mapNotNull { psiAnn ->
|
||||||
|
|||||||
Reference in New Issue
Block a user