Title | ||
---|---|---|
The buggy side of code refactoring: understanding the relationship between refactorings and bugs. |
Abstract | ||
---|---|---|
Code refactoring is widely practiced by software developers. There is an explicit assumption that code refactoring improves the structural quality of a software project, thereby also reducing its bug proneness. However, refactoring is often applied with different purposes in practice. Depending on the complexity of certain refactorings, developers might unconsciously make the source code more susceptible to have bugs. In this paper, we present a longitudinal study of 5 Java open source projects, where 20,689 refactorings, and 1,033 bug reports were analyzed. We found that many bugs are introduced in the refactored code as soon as the first immediate change is made on it. Furthermore, code elements affected by refactorings performed in conjunction with other changes are more prone to have bugs than those affected by pure refactorings.
|
Year | Venue | DocType |
---|---|---|
2018 | ICSE (Companion Volume) | Conference |
ISBN | Citations | PageRank |
978-1-4503-5663-3 | 0 | 0.34 |
References | Authors | |
0 | 12 |
Name | Order | Citations | PageRank |
---|---|---|---|
Isabella Ferreira | 1 | 0 | 0.68 |
Eduardo Fernandes | 2 | 28 | 6.70 |
Diego Cedrim | 3 | 29 | 2.15 |
Anderson G. Uchôa | 4 | 0 | 0.34 |
Ana Carla Bibiano | 5 | 0 | 0.34 |
Alessandro Garcia | 6 | 2231 | 143.70 |
João Correia | 7 | 7 | 8.81 |
Filipe Santos | 8 | 0 | 0.34 |
Gabriel Nunes | 9 | 0 | 0.34 |
Caio Barbosa | 10 | 0 | 1.35 |
Baldoino Fonseca | 11 | 103 | 16.57 |
Rafael Maiani de Mello | 12 | 71 | 10.47 |