如何让Lombok和AspectJ一起工作? [英] How to make Lombok and AspectJ work together?

查看:679
本文介绍了如何让Lombok和AspectJ一起工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚发布了这个问题上的关于Lombok没有生成我的getter / setter。事实证明它与AspectJ相冲突。如果我禁用AspectJ,则适当生成getter / setter。

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.

我的猜测是ajc编译器无法识别lombok。

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

Lombok和AspectJ是否互相排斥?这两种技术是否协同工作?

Are Lombok and AspectJ mutually exclusive? Do both technologies work together?

推荐答案

根据AspectJ维护者Andy Clement的当前答案是由于ECJ(Eclipse Compiler for Java)软件包存在问题在AspectJ编译器基础结构中包含和重命名。

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.

有关更多信息,Eric B.和A. Clement在AspectJ用户邮件列表上正在进行讨论:

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

  • Discussion thread
  • Discussion thread continued

也许我们可以通过这个答案解决问题,并在问题解决后报告。

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

这篇关于如何让Lombok和AspectJ一起工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆