EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Cross-Refactoring-Type Test Program Migration for Refactoring Engines

Chunhao Dong, Yanjie Jiang, Yang Zhang, Yuxia Zhang, Hui Liu

Proceedings of the ACM on Software Engineering · 30.06.2026 · 3 (FSE) · 3253-3274

DOI: 10.1145/3808151 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Proceedings of the ACM on Software Engineering, online erschienen am 30.06.2026. Verfasst von Chunhao Dong und 4 weiteren Autor:innen. Die Arbeit nennt 41 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: 中国国家自然科学基金会, the National Natural Science Foundation of China.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Refactoring engines are an essential part of modern IDEs, supporting automated or semi-automated software refactorings. However, these refactoring engines suffer from software bugs, just like other complex software systems, and buggy refactoring engines may silently inject fatal errors into software projects. Consequently, thorough testing of refactoring engines is highly desirable. To this end, this paper proposes an automated approach called EngineTest to test refactoring engines. Unlike existing approaches, it is the first in this line to leverage both LLMs and bug reports of refactoring types other than the targeted refactoring type. The key rationale is that the same mistake, e.g., ignoring the potential name shadowing, may result in similar errors in multiple refactoring types.Consequently, we may retrieve a bug report for a refactoring type and carefully construct a few-shot example as input, guiding LLMs to migrate it into test programs for exercising other refactoring types.Finally, we run the test cases and validate them with differential testing and LLM-based inconsistent checking. We evaluate the proposed approach with widely used state-of-the-practice refactoring engines in Eclipse, NetBeans, and IntelliJ IDEA. Our evaluation results demonstrate that a total of 85 previously unknown bugs (including Java, C/C++, and Python) have been identified, and 30 of them have been manually confirmed by the tool vendors.

Förderung

  • 中国国家自然科学基金会
  • the National Natural Science Foundation of China

Zitieren

APA

Dong, C., Jiang, Y., Zhang, Y., Zhang, Y., & Liu, H. (2026). Cross-Refactoring-Type Test Program Migration for Refactoring Engines. Proceedings of the ACM on Software Engineering, 3(FSE), 3253-3274. https://doi.org/10.1145/3808151

Vancouver

Dong C, Jiang Y, Zhang Y, Zhang Y, Liu H. Cross-Refactoring-Type Test Program Migration for Refactoring Engines. Proceedings of the ACM on Software Engineering. 2026;3(FSE):3253-3274. doi:10.1145/3808151

BibTeX
@article{Dong2026,
  author = {Dong, Chunhao and Jiang, Yanjie and Zhang, Yang and Zhang, Yuxia and Liu, Hui},
  title = {Cross-Refactoring-Type Test Program Migration for Refactoring Engines},
  journal = {Proceedings of the ACM on Software Engineering},
  year = {2026},
  volume = {3},
  number = {FSE},
  pages = {3253--3274},
  doi = {10.1145/3808151}
}
Kostenlos starten →