我刚刚安装了Java和Kotlin。
我从oracle安装了Java,并通过brew安装了kotlin。
在Kotlin中编写了简单的hello-world代码后,我不断收到警告。
我曾尝试安装IDE intellij,希望它可以修复,但没有帮助。
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.openapi.util.JDOMUtil$2 to constructor com.sun.xml.internal.stream.XMLInputFactoryImpl()
WARNING: Please consider reporting this to the maintainers of com.intellij.openapi.util.JDOMUtil$2
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
我在网上搜索过,但实际上没有帮助。
我的Java版本和Kotlin版本
java version "12.0.1" 2019-04-16
Java(TM) SE Runtime Environment (build 12.0.1+12)
Java HotSpot(TM) 64-Bit Server VM (build 12.0.1+12, mixed mode, sharing)
Kotlin version 1.3.31-release-197 (JRE 12.0.1+12)