Legacy Modernization with LLMs: Does the Translation Behave Like the Original?

· Federico Tomassetti · Nov. 23, 2026, 5:17 p.m.
Summary
This blog post explores the accuracy of code translations created by Language Learning Models (LLMs) during the migration of RPG applications to Java. Through multiple experiments, the author examines whether the translated code behaves exactly like the original. Findings reveal numerous errors across different translations, including inconsistencies in calculations, incorrect order of records, and ignored errors. Despite compiling successfully, the translations often do not replicate the original functionality as expected, particularly under edge cases, posing significant risks for business reliance on these translations. The author calls for serious testing and validation to ensure trust in the translated applications.