Hi, I'm getting this error when I run some Kotlin code on Elastic Beanstalk that I'm not getting when I run locally, it appears to be an exception within
KClasses.getMemberProperties()
. I'm using Kotlin 1.6.10 - would appreciate any suggestions:
Copy code
java.lang.ClassCastException: class kotlin.jvm.internal.ClassReference cannot be cast to class kotlin.reflect.jvm.internal.KClassImpl (kotlin.jvm.internal.ClassReference and kotlin.reflect.jvm.internal.KClassImpl are in unnamed module of loader 'app')
at kotlin.reflect.full.KClasses.getMemberProperties(KClasses.kt:148)
Ian
03/07/2022, 3:26 AM
Just confirmed that I can reproduce locally if I use
Amazon's Corretto-11.0.14.10.1 JRE
, which is what's used on Elastic Beanstalk, so it appears to be sensitive to the JRE I'm using.