Do code clones matter?

By Elmar Jürgens, F. Deißenböck, B. Hummel, Stefan Wagner. 2009 IEEE 31st International Conference on Software Engineering, 2009

489 citations recorded by the source corpus.

Code cloning is not only assumed to inflate maintenance 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 paper 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 detection tool used in the case study implements a novel algorithm for the detection of inconsistent clones. It is available as open source to enable other researchers to use it as basis for further investigations.

Subfields: Information Systems, Software, Signal Processing

View Paper: https://www.semanticscholar.org/paper/65f5ba6c95888ce66a84bf91f3505e42ffd141db

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Information Systems

  1. Chanchal Kumar Roy
  2. James R. Cordy
  3. Rainer Koschke
  4. Baishakhi Ray
  5. Peng Liu
  6. Satish Narayanasamy
  7. Michael J. Cafarella
  8. Abbas Heydarnoori

In Software

  1. Chanchal Kumar Roy
  2. James R. Cordy
  3. Rainer Koschke
  4. Peng Liu
  5. Satish Narayanasamy
  6. Michael J. Cafarella
  7. Yingjun Zhang
  8. Baishakhi Ray

In Signal Processing

  1. Chanchal Kumar Roy
  2. James R. Cordy
  3. Rainer Koschke
  4. Peng Liu
  5. Satish Narayanasamy
  6. Michael J. Cafarella
  7. Mark D. Plumbley
  8. Yingjun Zhang

Citations in the corpus