Do Code Clones Matter
Elmar Juergens, Florian Deissenboeck, Benjamin Hummel et al. · 2009
Code cloning is not only assumed to inflate mainte-nance costs but also considered defect-prone as inconsistent changes to code duplicates can lead to unexpected behavior. Consequently, the identification of duplicated code, clone detection, has been a very active area of research in recent years. Up to now, however, no substantial investigation of the consequences of code cloning on program correctness has been carried out. To remedy this shortcoming, this pa-per presents the results of a large-scale case study that was undertaken to find out if inconsistent changes to cloned code can indicate faults. For the analyzed commercial and open source systems we not only found that inconsistent changes to clones are very frequent but also identified a significant number of faults induced by such changes. The clone de-
Cited by 347 works.
Authors
References
- On-line construction of suffix trees
- Clone detection using abstract syntax trees
- A language independent approach for detecting duplicated code
- DECKARD: Scalable and Accurate Tree-Based Detection of Code Clones
- Assessing the benefits of incorporating function clone detection in a development process
- Using Slicing to Identify Duplication in Source Code
- Identifying similar code with program dependence graphs
- Two algorithms for approxmate string matching in static texts
- An empirical study of code clone genealogies
- CP-Miner: finding copy-paste and related bugs in large-scale software code