Is this an issue? Below the session “field” is fo...
# announcements
j
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.
o
@udalov
j
So, in my opinion this looks like an issue. Am I supposed to file an youtrack ticket for this?
Hi, I filed a ticket in youtrack. https://youtrack.jetbrains.com/issue/KT-21862
👍 1