静态导入在intelliJ中的lombok构建器中不起作用 [英] static import not working in lombok builder in intelliJ
本文介绍了静态导入在intelliJ中的lombok构建器中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在IntelliJ中使用Lombok.尽管当我尝试静态导入Lombok构建器时其他所有工作都很好,但是IntelliJ构建项目找不到构建器类.如果您不使用静态导入,则可以正常使用.
I am using Lombok in IntelliJ. Though everything else is working fine when I try to do the static import of the Lombok builder, IntelliJ build project doesn't find the builder class. If you don't use static import, it works fine.
推荐答案
这是一个已知的错误,而不是易于解决的错误.静态导入在运行注释处理器之前已解决.这是javac中的问题,不是lombok.
This is a known bug, and not something that's easy to fix. Static imports are resolved before the annotation processors are run. This is a problem in javac, not lombok.
披露:我是lombok开发人员.
Disclosure: I am a lombok developer.
这篇关于静态导入在intelliJ中的lombok构建器中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文