java - 警告:使用 OpenJDK 11 时发生非法反射访问操作
问题描述
我最近更新到 OpenJDK 11.0.9.1 2020-11-04,现在使用mvn clean
.
这是警告:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$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
我正在使用 Spring Boot 2.4.0,我的 Maven 版本是:
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 11.0.9.1, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-53-generic", arch: "amd64", family: "unix"
我的操作系统版本是 Ubuntu 20.04.1 LTS x86_64。
解决方案
推荐阅读
- github-api - Github API /用户标识符属性
- linux - 从“dd”恢复备份(softRAID HDD 可能有问题)
- ruby-on-rails - Sidekiq 在使用多个队列时忽略并发性
- pandas - 将具有远期日期的 CSV 解析为 Parquet
- javascript - Javascript构建动态多维数组
- html - 框转换不会响应 :hover
- arrays - React Native - 无法从 json 文件中的 Array 中访问 Array 中的数据
- javascript - 有条件地渲染属性对象值?
- android - Android的DisplayMetrics的heightpixels是否考虑了状态栏和软导航栏?
- c++ - 计算具有限制的唯一排列的有效方法