Fix interpreting of java static members such as Boolean.TRUE
This commit is contained in:
committed by
TeamCityServer
parent
592256976e
commit
47ed6789d2
@@ -79,7 +79,7 @@ internal class Wrapper(val value: Any, override val irClass: IrClass) : Complex(
|
||||
|
||||
fun getStaticGetter(field: IrField): MethodHandle? {
|
||||
val jvmClass = field.parentAsClass.defaultType.getClass(true)
|
||||
val returnType = field.type.getClass(false)
|
||||
val returnType = field.type.let { it.getClass((it as IrSimpleType).hasQuestionMark) }
|
||||
return MethodHandles.lookup().findStaticGetter(jvmClass, field.name.asString(), returnType)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user