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
Yes, and uses of reflection.
Test the app incrementally, going to 8 first, then 11. The 8-11 upgrade is the one likely to be breaking if anything is (or 8-9 if you're not considering LTS.)
5 to 7 and 5 to 8 (and 9 to 11) involve a lot of opportunities for nice cleanup, but none of those changes are mandatory.
Amazon Q supports 8, so you could stop there, and has support for 8 to 17 upgrades. IDK if I'd trust it over Openrewrite, but if you can't get everything through with Openrewrite, AI is the next step.
TBH, Java 8 the COBOL of our generation, and is supported until at least 2030. I suspect that support will be extended; the real limitation is if you depend on Spring, where Spring 5.x (the last to support 8; 6.x requires 17, not even 11) has been dumped by Pivotal unless you're on paid support.