当前位置:   article > 正文

【异常】JDK21报错NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member fie_java: java.lang.nosuchfielderror: class com.sun.to

java: java.lang.nosuchfielderror: class com.sun.tools.javac.tree.jctree$jcim

【异常】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'
 

lombok版本兼容性的问题

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

  1. <dependency>
  2. <groupId>org.projectlombok</groupId>
  3. <artifactId>lombok</artifactId>
  4. <version>1.18.30</version>
  5. </dependency>

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

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/181469
推荐阅读
相关标签
  

闽ICP备14008679号