【异常】JDK21报错NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member fie

avatar
作者
猴君
阅读量:0

【异常】JDK21报错NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member fie

java: java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field 'com.sun.tools.javac.tree.JCTree qualid'
 

Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field 'com.sun.tools.javac.tree.JCTree qualid'

lombok版本兼容性的问题

Maven依赖更新新版 lombok 为 1.18.30 即可

<dependency>     <groupId>org.projectlombok</groupId>     <artifactId>lombok</artifactId>     <version>1.18.30</version> </dependency>

如果更新完还不行, 可以试试 clean 等 清理缓存

缓存清一下, 或者新建个项目重新加载maven依赖

广告一刻

为您即时展示最新活动产品广告消息,让您随时掌握产品活动新动态!