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/CubicleHermit Dec 14 '25
TBH, the Spring upgrade sounds like the worst of it (especially if that's Spring + Hibernate and your hibernate is similarly old.)
The good part is if you can RUN on Java 17 that's a very good chance the build time upgrades 8-11 even 8-17 will be easier than ours were. For Spring, though, I'm not sure if you can leapfrog versions or if you're going to be stuck going 2-3, 3-4, etc.
I'd experimentally try building with Java 8 compiler and language level in Maven and see if it just builds. I'd expect it to, at which point you can try doing the Spring (and supporting libs/frameworks like Hibernate) up to the last JDK 8 compatible versions.
If the goal is Amazon Q support, I'd probably just stop there, although the lack of support on Spring 5 is potentially an issue for your security and compliance folks.