我在 VSCode 中编写了一些 kotlin 代码
其中之一是:
fun main() {
println("Hello world")
}
当我运行它时,我得到:
[Running] cd "d:\Coding\Dicoding\" && kotlinc a.kt -include-runtime -d a.jar && java -jar a.jar
Java HotSpot(TM) 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.util.ReflectionUtil 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
Hello world
[Done] exited with code=0 in 2.976 seconds
它有效,但我无法隐藏或修复警告,我使用 JDK 15
我没有在 IntelliJ 上收到这些警告