mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
Fix list of script definitions recognized by the asm-based loading:
fix of the previous fix to #KT-24926
This commit is contained in:
@@ -21,7 +21,7 @@ private class TemplateAnnotationVisitor(val anns: ArrayList<BinAnnData> = arrayL
|
||||
private class TemplateClassVisitor(val annVisitor: TemplateAnnotationVisitor) : ClassVisitor(Opcodes.ASM5) {
|
||||
override fun visitAnnotation(desc: String, visible: Boolean): AnnotationVisitor? {
|
||||
val shortName = Type.getType(desc).internalName.substringAfterLast("/")
|
||||
if (shortName.startsWith("KotlinScript")) {
|
||||
if (shortName.startsWith("KotlinScript") || shortName.startsWith("ScriptTemplate")) {
|
||||
annVisitor.anns.add(BinAnnData(shortName))
|
||||
return annVisitor
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user