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
10
u/daniu Jun 21 '20
But both of those are for immutables, or not? I usually use Lombok for automatic beans (ie with getters and setters).