Is this an issue?
Below the session “field” is found when isAbstract is called on it but throws a strange error when isInitialized is called.
class Session {
companion object INSTANCE {
private lateinit var session: Session
fun createSession() = Session().apply {
session = this
}
fun weird() {
Session.INSTANCE::session.isAbstract // this works!!!!
Session.INSTANCE::session.isInitialized // but this doesn’t! java.lang.NoSuchFieldError: session thrown at runtime.
}
}
}
There is any explanation about this?
Thank you.