Upgrading Legacy Codebase to Newer JDK | Generated by AI

Home 2025.08

Upgrading a large codebase (tens of thousands of lines) from JDK 8 and Spring 5.2.2 to a newer JDK like 11, 17, or 21 requires careful planning to minimize disruptions, especially given the use of IBM DB2 JCC drivers, heavy reliance on Spring, and deployment to WebSphere Liberty. Below, I’ll outline key considerations, including compatibility, potential breaking changes, migration steps, and recommendations. Since you mentioned you can upgrade Spring as well, I’ll cover scenarios where that might be necessary or beneficial.

General Considerations for JDK Upgrade

Specific Considerations by Target JDK

Upgrading to JDK 11

Upgrading to JDK 17

Upgrading to JDK 21

Additional Project-Specific Considerations

Recommendations

If you provide more details (e.g., specific Spring modules or DB2 version), I can refine this further.


Back Donate