An empirical study on clone stability
dc.contributor.author | Mondal, Manishankar | |
dc.contributor.author | Roy, Chanchal K. | |
dc.contributor.author | Schneider, Kevin A. | |
dc.date.accessioned | 2015-08-06T21:35:34Z | |
dc.date.available | 2015-08-06T21:35:34Z | |
dc.date.issued | 2012 | |
dc.description.abstract | Code cloning is a controversial software engineering practice due to contradictory claims regarding its effect on software maintenance. Code stability is a recently introduced measurement technique that has been used to determine the impact of code cloning by quantifying the changeability of a code region. Although most existing stability analysis studies agree that cloned code is more stable than non-cloned code, the studies have two major flaws: (i) each study only considered a single stability measurement (e.g., lines of code changed, frequency of change, age of change); and, (ii) only a small number of subject systems were analyzed and these were of limited variety. In this paper, we present a comprehensive empirical study on code stability using four different stability measuring methods. We use a recently introduced hybrid clone detection tool, NiCAD, to detect the clones and analyze their stability in different dimensions: by clone type, by measuring method, by programming language, and by system size and age. Our in-depth investigation on 12 diverse subject systems written in three programming languages considering three types of clones reveals that: (i) cloned code is generally less stable than non-cloned code, and more specifically both Type-1 and Type-2 clones show higher instability than Type-3 clones; (ii) clones in both Java and C systems exhibit higher instability compared to the clones in C# systems; (iii) a system's development strategy might play a key role in defining its comparative code stability scenario; and, (iv) cloned and non-cloned regions of a subject system do not follow any consistent change pattern. | en_US |
dc.description.refereed | Yes | en_US |
dc.identifier.doi | 10.1145/2387358.2387360 | |
dc.identifier.uri | http://hdl.handle.net/1880/50834 | |
dc.identifier.uri | https://doi.org/10.11575/PRISM/46250 | |
dc.publisher | ACM | en_US |
dc.publisher.url | http://dx.doi.org/10.1145/2387358.2387360 | en_US |
dc.title | An empirical study on clone stability | en_US |
dc.type | unknown |
Files
License bundle
1 - 1 of 1
No Thumbnail Available
- Name:
- license.txt
- Size:
- 1.84 KB
- Format:
- Item-specific license agreed upon to submission
- Description: