Kotlin / kotlin-interactive-shell

Kotlin Language Interactive Shell
Apache License 2.0
588 stars 36 forks source link

W: An illegal reflective access operation has occurred #56

Closed theapache64 closed 3 years ago

theapache64 commented 3 years ago

image

Is this expected?

dodalovic commented 3 years ago

Try using jdk 8

abelkov commented 3 years ago

The warning should go away when ki updates its Kotlin compiler to 1.5: https://youtrack.jetbrains.com/issue/KT-43520

arynxd commented 3 years ago

The warning should go away when ki updates its Kotlin compiler to 1.5:

is there any way to do this manually?

khud commented 3 years ago

I will fix it soon. If you use JDK 9+, the best way to walk it around is to use --add-opens:

java --add-opens java.base/java.util=ALL-UNNAMED -jar ${KI_SHELL} $@