Java 运行Kotlin时,这些非法访问警告是什么?如何阻止它们?
我是Kotlin的新手,在运行任何脚本时,终端都会抛出这些警告Java 运行Kotlin时,这些非法访问警告是什么?如何阻止它们?,java,kotlin,Java,Kotlin,我是Kotlin的新手,在运行任何脚本时,终端都会抛出这些警告 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 WARN
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
这些是什么?如何隐藏它们?我使用的是
Kotlin版本1.4.21-release-351(JRE 15.0.1+9-18)
如果这有帮助也可以点击本期,请点击
目前,最好的选择是将JAVA_HOME设置为1.8,而不是9+
该警告与Java 9中添加的Java平台模块系统有关。见本问答:
$ ./tube-status.main.kts
Bakerloo Good Service
Central Good Service
Circle Minor Delays
District Part Closure
Hammersmith & City Minor Delays
Jubilee Good Service
Metropolitan Minor Delays
Northern Good Service
Piccadilly Part Closure
Victoria Good Service
Waterloo & City Planned Closure