Clone Management for Evolving Software
- 1 September 2011
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Software Engineering
- Vol. 38 (5) , 1008-1026
Abstract
Recent research results suggest a need for code clone management. In this paper, we introduce JSync, a novel clone management tool. JSync provides two main functions to support developers in being aware of the clone relation among code fragments as software systems evolve and in making consistent changes as they create or modify cloned code. JSync represents source code and clones as (sub)trees in Abstract Syntax Trees, measures code similarity based on structural characteristic vectors, and describes code changes as tree editing scripts. The key techniques of JSync include the algorithms to compute tree editing scripts, to detect and update code clones and their groups, to analyze the changes of cloned code to validate their consistency, and to recommend relevant clone synchronization and merging. Our empirical study on several real-world systems shows that JSync is efficient and accurate in clone detection and updating, and provides the correct detection of the defects resulting from inconsistent changes to clones and the correct recommendations for change propagation across cloned code.Keywords
This publication has 44 references indexed in Scilit:
- Scalable and systematic detection of buggy inconsistencies in source code2010
- Syntax tree fingerprinting for source code similarity detection2009
- Incremental Clone Detection2009
- Clonetracker2008
- Scalable detection of semantic clones2008
- Change Distilling:Tree Differencing for Fine-Grained Source Code Change ExtractionIEEE Transactions on Software Engineering, 2007
- Tracking Code Clones in Evolving Software29th International Conference on Software Engineering (ICSE'07), 2007
- Impact of software engineering research on the practice of software configuration managementACM Transactions on Software Engineering and Methodology, 2005
- A language independent approach for detecting duplicated code1999
- Version models for software configuration managementACM Computing Surveys, 1998