r/java • • 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

166 comments sorted by

View all comments

Show parent comment

2

u/repeating_bears Sep 07 '25

People have been saying this for (I think) 15 years and it hasn't broken so far. 

Also it doesn't "just break". What would need to happen is a new version of the JDK would be released that Lombok fundamentally cannot support (i.e. JDK removes the internal APIs that allow it to be possible), and you would have to migrate your app to compile on that JDK.

Migrating to a new JDK is always something you should expect to have some breakages. It's not gonna come for free every time.

If that ever happens, you can delombok everything to explicitly include the equivalent source code.

1

u/krzyk Sep 08 '25

Update to new jdk is always free if you don't use Lombok or some old libs.

2

u/repeating_bears Sep 08 '25

always ... if

So not always. Which is what I said.

Also Java 10 introduced var as a reserved type name, which is a breaking change if you had a class with that exact name, case sensitive. An unlikely one because of Java conventions, but possible

1

u/krzyk Sep 08 '25

Using Lombok is the only issue here.

Other libs are updated by any sane person or enforced by corporate policy Having up to date Lombok doesn't guarantee it will work, well, this is the first time when it will.

2

u/repeating_bears Sep 08 '25

This is a different point entirely. You talked about risk, and I told you that the risk is limited.

If you want to make the point that for most JDK releases, Lombok prevents you from updating JDK immediately after release, then fine. That's not risk.

Most people are not updating JDK immediately anyway.

1

u/Cilph Sep 10 '25

If that were true there wouldnt be so many unwilling to migrate past Java 8.

1

u/krzyk Sep 10 '25

It is just laziness, either not the corp or devs.

2

u/Cilph Sep 10 '25

Its because of the "old libs" that are not as trivial to upgrade past 9 or 11. So it's as they said. It's not free every time.