Automatically Fixing Dependency Breaking Changes
Open Access
- 19 June 2025
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Software Engineering
- Vol. 2 (FSE) , 2146-2168
Abstract
Breaking changes in dependencies are a common challenge in software development, requiring manual intervention to resolve. This study examines how well LLM automate the repair of breaking changes caused by dependency updates in Java projects. Although earlier methods have mostly concentrated on detecting breaking changes or investigating their impact, they have not been able to completely automate the repair process. We introduce and compare two new approaches: an agentic system that combines automated tool usage with LLM, and a recursive zero-shot approach, employing iterative prompt refinement. Our experimental framework assesses the repair success of both approaches, using the BUMP dataset of curated breaking changes. We also investigate the impact of variables such as dependency popularity and prompt configuration on repair outcomes. Our results demonstrate a substantial difference in test suite success rates, with the agentic approach achieving a repair success rate of up to 23%, while the zero-shot prompting approach achieved a repair success rate of up to 19%. We show that automated program repair of breaking dependencies with LLMs is feasible and can be optimised to achieve better repair outcomes.Keywords
This publication has 44 references indexed in Scilit:
- On the relation of method popularity to breaking changes in the Maven ecosystemJournal of Systems and Software, 2023
- An Extensive Study on Model Architecture and Program Representation in the Domain of Learning-based Automated Program Repair2023
- Analysing the Relationship Between Dependency Definition and Updating Practice When Using Third-Party Libraries2022
- Breaking bad? Semantic versioning and impact of breaking changes in Maven CentralEmpirical Software Engineering, 2022
- Can we trust tests to automate dependency updates? A case study of Java ProjectsJournal of Systems and Software, 2022
- Do developers update their library dependencies?Empirical Software Engineering, 2017
- How Java APIs break – An empirical studyInformation and Software Technology, 2015
- SPOON: A library for implementing analyses and transformations of Java source codeSoftware: Practice and Experience, 2015
- Formalization of Component SubstitutabilityElectronic Notes in Theoretical Computer Science, 2008
- Is It an agent, or just a program?: A taxonomy for autonomous agents1997