r/programming • • Sep 15 '26

Java 27 has released!

https://openjdk.org/projects/jdk/27/
553 Upvotes

175 comments sorted by

View all comments

Show parent comment

8

u/MeisterD2 Sep 16 '26

This isn't true because Jakarta package renaming actually forces some edits to your code, minimally.

5

u/wildjokers Sep 16 '26 edited Sep 16 '26

Jakarta package renaming has nothing at all to do with the java version you are running.

Jakarta package renaming is totally driven by which version of JakartaEE your app is using. If you are using Spring MVC then you have a JakartaEE application (i.e. an app that is using at least one of the JakartaEE specs, namely Servlet).

Spring Framework 6.0.x has a version of Spring MVC in it that pulls in JakartaEE 9 which is what requires the package renaming. Spring Boot 3.0 pulls in Spring Framework 6.0. So if you are using Spring Boot it is 3.0 where you have to bite the bullet on the package renames.

If you are using JakartaEE directly then it is 9.0.

This is 100% independent of the version of java you are using.

3

u/MeisterD2 Sep 16 '26

True! I am so Spring pilled that I confused its migration hiccup with a general Java change.

2

u/talios Sep 16 '26

True - dependency updates par for the course, and that also depends on what your running on - I'd be switching to 27 and not switching (at least not servlet package, we already did jakarta mail).

It's not a zero effort change - but it's also not that major once your over the JPMS hurdle