Miguel Guilherme
01/12/2021, 2:00 PMMiguel Guilherme
01/12/2021, 2:00 PMWARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.util.ReflectionUtil (file:/Users/some-user/.sdkman/candidates/kotlin/1.4.21/lib/kotlin-compiler.jar) to method java.util.ResourceBundle.setParent(java.util.ResourceBundle)
WARNING: Please consider reporting this to the maintainers of com.intellij.util.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Miguel Guilherme
01/12/2021, 2:01 PMMiguel Guilherme
01/12/2021, 2:02 PMVampire
01/12/2021, 2:12 PM--add-opens
to open up the classes and make the warning go away.Miguel Guilherme
01/12/2021, 3:40 PMMiguel Guilherme
01/12/2021, 3:41 PMMiguel Guilherme
01/12/2021, 3:41 PMVampire
01/12/2021, 4:11 PMVampire
01/12/2021, 4:11 PM-J--add-opens=....
but I don't know whether Kotlin follows that patternMiguel Guilherme
01/12/2021, 4:31 PMMiguel Guilherme
01/12/2021, 4:31 PM@file:KotlinOpts("-J-Xmx5g")
@file:KotlinOpts("-J-server")
@file:CompilerOpts("-jvm-target 1.8")
Miguel Guilherme
01/12/2021, 4:31 PMMiguel Guilherme
01/12/2021, 4:31 PMMiguel Guilherme
01/12/2021, 5:39 PM#!/usr/bin/env kotlin
to
#!/usr/bin/env kotlinc -J--add-opens=java.base/java.util=ALL-UNNAMED -script
Miguel Guilherme
01/12/2021, 5:40 PMVampire
01/12/2021, 5:40 PMMiguel Guilherme
01/12/2021, 5:41 PM