arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.14610cs.SE
收藏

重构引擎缺陷的实证研究

An Empirical Study of Refactoring Engine Bugs

Haibo Wang, Zhuolin Xu, Huaien Zhang, Nikolaos Tsantalis, Shin Hwei Tan

AI总结:

本文首次系统分析了Eclipse、IntelliJ IDEA和Netbeans三种重构引擎的缺陷,按类型、症状、原因和触发条件归纳出12项发现,并在最新版本中发现130个新缺陷,为缺陷检测与调试提供指导。

摘要:

重构是软件开发中的关键过程,旨在改善代码内部结构的同时保持其外部行为不变。重构引擎是现代集成开发环境(IDE)的核心组件,能够自动化或半自动化地执行此过程,以提升代码可读性、降低复杂度并改善软件产品的可维护性。如同传统软件系统一样,重构引擎可能生成不正确的重构程序,导致意外行为甚至崩溃。本文针对Eclipse、IntelliJ IDEA和Netbeans三种主流重构引擎中出现的缺陷进行了首次系统性研究。我们根据重构类型、症状、根本原因和触发条件对这些缺陷进行了分析。我们得出了12项发现,并为未来重构缺陷检测与调试工作提供了一系列有价值的指导原则。此外,可迁移性研究在上述重构引擎的最新版本中发现了130个新缺陷。在我们提交的21个缺陷中,10个已被开发者确认,其中7个已被修复。

英文摘要:

Refactoring is a critical process in software development, aiming at improving the internal structure of code while preserving its external behavior. Refactoring engines are integral components of modern Integrated Development Environments (IDEs) and can automate or semi-automate this process to enhance code readability, reduce complexity, and improve the maintainability of software products. Like traditional software systems, refactoring engines can generate incorrect refactored programs, resulting in unexpected behaviors or even crashes. In this paper, we present the first systematic study of refactoring engine bugs by analyzing bugs arising in three popular refactoring engines (i.e., Eclipse, IntelliJ IDEA, and Netbeans). We analyzed these bugs according to their refactoring types, symptoms, root causes, and triggering conditions. We obtained 12 findings and provided a series of valuable guidelines for future work on refactoring bug detection and debugging. Furthermore, our transferability study revealed 130 new bugs in the latest version of those refactoring engines. Among the 21 bugs we submitted, 10 bugs are confirmed by their developers, and seven of them have already been fixed.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑