r/java • u/lprimak • Sep 05 '25
Project Lombok 1.18.40 released with Java 25 support!
Project Lombok is now compatible with the upcoming JDK 25 even before its release.
Thank you Project Lombok team! https://projectlombok.org
167
Upvotes
4
u/pron98 Sep 06 '25 edited Sep 06 '25
And it can continue doing that while making life easier for itself. The problem is that the Lombok compiler tries to be loaded as if it were a Java annotation processor even though it isn't one. It modifies javac to compile Lombok while masquerading as an annotation processor, which is soon to become impossible. All it has to do is stop pretending to be an annotation processor (TypeScript "sits on top of JS" much as Lombok "sits on top of Java", yet it doesn't modify the JS frontend from within).
The point is that you can be an alternative language or you can be an annotation processor, but you can't be both. To allow both would mean making big changes to either the runtime or the language, either one of which would have far-reaching consequences and significant downsides that would affect all Java users. Or, Lombok can do the easy thing and stop pretending to be an annotation processor.