How Clones are Maintained: An Empirical Study

  • Authors:
  • Lerina Aversano;Luigi Cerulo;Massimiliano Di Penta

  • Affiliations:
  • University of Sannio, Italy;University of Sannio, Italy;University of Sannio, Italy

  • Venue:
  • CSMR '07 Proceedings of the 11th European Conference on Software Maintenance and Reengineering
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

Despite the conventional wisdom concerning the risks related to the use of source code cloning as a software development strategy, several studies appeared in literature indicated that this is not true. In most cases clones are properly maintained and, when this does not happen, is because cloned code evolves independently. Stemming from previous works, this paper combines clone detection and co-change analysis to investigate how clones are maintained when an evolution activity or a bug fixing impact a source code fragment belonging to a clone class. The two case studies reported confirm that, either for bug fixing or for evolution purposes, most of the cloned code is consistently maintained during the same co-change or during temporally close co-changes.