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

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

问题描述

我刚刚发布了 SO 上的这个问题,关于 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 的当前答案是,由于在 AspectJ 编译器基础结构中包含并重命名了 ECJ(Java Eclipse 编译器)包而存在问题.

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:

也许我们可以用这个答案在此处关闭问题,并在问题解决后反馈.

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

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

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