An Automated Framework for Legacy Java Modernization Integrating Software Quality, Business Value, and GPT-4-Assisted Re-Engineering: An Empirical Evaluation
Samar Alqahtani, Ahmed Ghoneim
Key points
From the paper's conclusion- To address this gap, this study introduces a seven-step automated framework integrating program comprehension, Software Quality (SQ) and Business Value (BV) assessment, a BV × SQ decision mechanism, and GPT-4-assisted re-engineering with closed-loop quality validation within a unified pipeline.
Abstract
Legacy software systems remain operational in many organizations because of their long-standing business value, yet structural degradation and outdated documentation make them increasingly difficult to understand and modernize. Existing reverse-engineering and modernization approaches often address program comprehension, quality assessment, decision support, and code transformation separately, leaving a gap between understanding legacy code and prioritizing components for modernization. To address this gap, this study introduces a seven-step automated framework integrating program comprehension, Software Quality (SQ) and Business Value (BV) assessment, a BV × SQ decision mechanism, and GPT-4-assisted re-engineering with closed-loop quality validation within a unified pipeline. Architectural centrality, change-frequency signals, and structural quality metrics prioritize methods for re-engineering or maintenance, while transformed methods are iteratively re-evaluated against predefined quality criteria. Evaluated on 80 methods across four open-source legacy Java systems from the Qualitas Corpus, the framework achieved a 93.8% validation pass rate and a mean SQ improvement of 40.28 points. The closed-loop mechanism increased the pass rate from 92.5% to 93.8%, while the Maintainability Index evaluation on Apache Ant yielded a Cohen’s d of 4.964. These findings provide empirical evidence that integrating quality- and value-driven decision mechanisms with iterative LLM-assisted re-engineering can support systematic legacy software modernization.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A Multi-Objective Statistical Framework for Evaluating LLM-Based Code Modernization: Transformation Pattern Analysis and Effect Size ValidationComputers · 2026
- An Empirical Study on the Code Refactoring Capability of Large Language ModelsACM Transactions on Software Engineering and Methodology · 2026
- Beyond Methods: An Empirical Study of File-Level Production-Test Co-evolution and Its Implications for AutomationACM Transactions on Software Engineering and Methodology · 2026
- Preserving a decade of machine-learning validity across a ground-up refactoring: a five-tier automated validation of RCT-Reviewer, an independent modernization of RobotReviewermedRxiv · 2026
- Orchestrating AI-Assisted Code Remediation: Socio-Technical Bottlenecks in a Large Industrial RepositoryarXiv · 2026
- Software Engineering LLMs: Why We Need Them and How Software Engineering Helps Build ThemarXiv · 2026