Lombok does not work with AspectJ?

匿名 (未验证) 提交于 2019-12-03 02:50:02

问题:

I just finished posting this issue on SO about Lombok not generating my getters/setters. It turns out that it is conflicting with AspectJ. If I disable AspectJ, then the getters/setters are appropriately generated.

My guess is that the ajc compiler is not able to recognize lombok.

Are Lombok and AspectJ mutually exclusive? Can I not use both technologies together?

回答1:

The current answer according to AspectJ maintainer Andy Clement is that there are problems due to ECJ (Eclipse Compiler for Java) packages being included and renamed in the AspectJ compiler infrastructure.

For more information there is ongoing discussion between Eric B. and A. Clement on the AspectJ users mailing list:

Maybe we can close the issue here with this answer and report back when the problem is solved.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!