Are refactorings less error-prone than other changes?

Are refactorings less error-prone than other changes?
复制标题

重构是否比其他更改更不容易出错?

DOI:
10.1145/1137983.1138011
复制
发表时间:
2006
期刊:
--
影响因子:
--
通讯作者:
S. Diehl
S. Diehl
中科院分区:
--
文献类型:
--
作者:
P. Weißgerber;S. Diehl

文献摘要

被引文献

相似文献

重构是应该保留程序行为的程序转换。因此,我们预计,在系统的变更历史中有大部分重构的阶段,只会引入很少的新错误。在我们的案例研究中,我们分析了几个开源系统的版本历史,并重构了所执行的重构。此外,根据系统的不同,我们从不同的来源获得了错误报告。基于这些数据,我们确定了上述假设成立的阶段和不成立的阶段。
Refactorings are program transformations which should preserve the program behavior. Consequently, we expect that during phases when there are mostly refactorings in the change history of a system, only few new bugs are introduced. For our case study we analyzed the version histories of several open source systems and reconstructed the refactorings performed. Furthermore, we obtained bug reports from various sources depending on the system. Based on this data we identify phases when the above hypothesis holds and those when it doesn't.