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.
| Originalsprog | Engelsk |
|---|---|
| Titel | 40th International Conference on Software Engineering (ICSE) : Poster Track |
| Antal sider | 2 |
| Udgivelsessted | New York |
| Forlag | Association for Computing Machinery |
| Publikationsdato | 2018 |
| Sider | 406-407 |
| ISBN (Trykt) | 9781450356633 |
| DOI | |
| Status | Udgivet - 2018 |
| Udgivet eksternt | Ja |