Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Lombok and AspectJ work together?

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? Do both technologies work together?

like image 423
Eric B. Avatar asked Sep 18 '14 03:09

Eric B.


1 Answers

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:

  • Discussion thread
  • Discussion thread continued

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

like image 128
kriegaex Avatar answered Nov 15 '22 15:11

kriegaex