1、解决方案(第3步)
- Extract a fresh copy of the Eclipse (Eclipse 2021-06 builded with JRE16)
- Intall Lombok
- Update the following to eclipse.ini
--illegal-access=warn
--add-opens java.base/java.lang=ALL-UNNAMED
引用:https://github.com/projectlombok/lombok/issues/2892
2、出现原因
java9以上
引用:反射 - 如何解决 Java 9 上的 InaccessibleObjectException(“无法使 {member} 可访问:模块 {A} 不会‘打开 {package}’到 {B}”)? - 堆栈溢出
https://stackoverflow.com/questions/41265266/how-to-solve-inaccessibleobjectexception-unable-to-make-member-accessible-m
3、其它相关技能
mac上安装两个版本的jdk
引用:https://blog.csdn.net/qq_42214137/article/details/93223637?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-2.base&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-2.base