小编Ric*_*els的帖子

为什么groovy在使用JDK11时显示警告“发生非法反射访问操作”

当我使用 JDK11,然后安装 Groovy 时,出现了一些警告,如下所示:

WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/D:/Groovy/groovy-2.5.7/lib/groovy-2.5.7.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int) WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1 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 Groovy Version: 2.5.7 JVM: 11.0.3 Vendor: Oracle Corporation OS: Windows 10

当我使用JDK 8时,没有警告,有人知道原因吗?

java groovy

3
推荐指数
1
解决办法
2795
查看次数

标签 统计

groovy ×1

java ×1