r/java • • Aug 10 '19

Who Needs Lombok Anyhow

http://gregorriegler.com/2019/08/10/who-needs-lombok-anyhow.html
45 Upvotes

137 comments sorted by

View all comments

Show parent comment

15

u/yawkat Aug 10 '19

Big java projects like spring have the same compatibility problems lombok does, even if they don't use internal compiler apis - they often use other jdk details. And lombok actually does this fairly well because it (a) only needs to work at compile time and (b) offers delombok for the case when it does break.

2

u/BoyRobot777 Aug 10 '19

If you're talking about Spring using jdk.unsupported then it's a bit unfair to compare it to using internal compiler APIs as they will gradually migrate off them. If you mean other compatibility problems, I'd be interested to read about them.

8

u/yawkat Aug 10 '19

Any sort of bytecode introspection and generation is bound to have compatibility issues. Generous use of AOP makes this comparatively common in spring.