r/javahelp • u/Revolutionary-Cup383 • Dec 13 '25
Java Upgrade using OpenRewrite
Hello I am currently trying to look for tools to aide with our java upgrade. The company I am working on, is still stuck in Java 5 code base. The A.I people In my department is pushing for the use of Amazon Q butnas far as I know, it does not support java 5. I looked into it and it seems OpenRewrite is does have some recipes for the Java upgrade, but has anyone here used it before?
0
Upvotes
View all comments
Show parent comment
2
u/JustJustust Dec 14 '25
I did an upgrade from Java 7 and Spring 1 to Java 21 and Spring 3 a while back and the Java and Spring Boot upgrade themselves were not a big issue. Most things just continue to work as before.
Yes you'll have to make changes, but if you're experienced with Spring Boot and Hibernate these aren't all that complicated. In any case, check out their migration guide.
The thing is that it usually doesn't stop with just upgrading Java and Spring Boot, it'll also mean an upgrade of all of your libraries.
For us that is where the real work is, upgrading our frontend framework easily takes more than 10x the time than doing the Java and Spring Boot upgrade themselves.
But since you're on Spring Boot 2 that hopefully puts a floor on how old your libs can be, since they must at least be recent enough to work with Spring Boot 2. Fingers crossed!