Clone Smells in Software Evolution
- 1 October 2007
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 10636773,p. 24-33
Abstract
Although source code cloning (copy&paste programming) represents a significant threat to the maintainability of a software system, problems usually start to arise only when the system evolves. Most of the related research papers tackle the question of finding code clones in one particular version of the software only, leaving the dynamic behavior of the clones out of consideration. Eliminating these clones in large software systems often seems absolutely hopeless, as there might exist several thousands of them. Alternatively, tracking the evolution of individual clones can be used to identify those occurrences that could really cause problems in the future versions. In this paper we present an approach for mapping clones from one particular version of the software to another one, based on a similarity measure. This mapping is used to define conditions under which clones become suspicious (or "smelly") compared to their other occurrences. Accordingly, these conditions introduce the notion of dynamic clone smells. The usefulness of these smells is validated on the Mozilla Firefox internet browser, where the approach was able to find specific bugs that resulted from neglecting earlier copy&paste activities.Keywords
This publication has 19 references indexed in Scilit:
- Pattern Matching for Clone and Concept Detection2007
- Clone Detection Using Abstract Syntax Suffix Trees2006
- An empirical study of code clone genealogiesACM SIGSOFT Software Engineering Notes, 2005
- Effective, automatic procedure extraction2004
- Finding function clones in Web applications2003
- Clone detection using abstract syntax trees2002
- Advanced clone-analysis to support object-oriented system refactoring2002
- CCFinder: a multilinguistic token-based code clone detection system for large scale source codeIEEE Transactions on Software Engineering, 2002
- Assessing the benefits of incorporating function clone detection in a development process1997
- Substring matching for clone detection and change tracking1994