The buggy side of code refactoring: Understanding the relationship between refactorings and bugs

  • Isabella Ferreira
  • , Eduardo Fernandes
  • , Diego Cedrim
  • , Anderson Uchôa
  • , Ana Carla Bibiano
  • , Alessandro Garcia
  • , João Lucas Correia
  • , Filipe Santos
  • , Gabriel Nunes
  • , Caio Barbosa
  • , Baldoino Fonseca
  • , Rafael de Mello

Publikation: Kapitel i bog/rapport/konference-proceedingKonferencebidrag i proceedingsForskningpeer review

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.
OriginalsprogEngelsk
Titel40th International Conference on Software Engineering (ICSE) : Poster Track
Antal sider2
UdgivelsesstedNew York
ForlagAssociation for Computing Machinery
Publikationsdato2018
Sider406-407
ISBN (Trykt)9781450356633
DOI
StatusUdgivet - 2018
Udgivet eksterntJa

Fingeraftryk

Dyk ned i forskningsemnerne om 'The buggy side of code refactoring: Understanding the relationship between refactorings and bugs'. Sammen danner de et unikt fingeraftryk.

Citationsformater