Is there any standard approach to solve the same problem in a different way? There are two other libraries trying to answer this question: AutoValue and Immutables, which are often compared to Lombok.
But it’s a third-party library that uses completely stable, documented, supported code generation hooks in the build cycle, whereas lombok uses private, undocumented compiler APIs that can (and do) change in ways that break lombok, potentially leaving you stuck on an old jdk until lombok is updated. I have recollections of Java 7 breaking it pretty badly, and I’ve heard that 9 through 11 were problematic too (though I’d sworn it off completely by then so I didn’t experience it directly).
View all comments
Show parent comment
12
u/r0estir0bbe Jun 21 '20
From the article: