Computer and Modernization ›› 2016, Vol. 0 ›› Issue (4): 79-84+99.doi: 10.3969/j.issn.1006-2475.2016.04.016

Previous Articles     Next Articles

Cross-language Clone Detection Based on Revision Similarity

  

  1. (1. School of Software, Shanghai Jiao Tong University, Shanghai 200240, China;

    2. Department of Computer Science and Engineering, Shanghai Jiao Tong University, Shanghai 200240, China)

  • Received:2015-11-06 Online:2016-04-14 Published:2018-09-30

Abstract:

To attract more developers or to support different platforms, open source organizations or business companies tend to re-implement their projects using different programming languages. In these multilanguage projects, it is difficult to avoid crosslanguage code clones. Crosslanguage clone detection becomes an important part of the maintenance. However, most tools can only detect clones in the same language and they cannot detect crosslanguage code clones between languages like Java and C#. In this paper, we propose a new approach based on revision similarity to detect crosslanguage clones on different platforms. The tool is able to find code clones between Java and C#. We evaluate our tool on two open source projects, ANTLR and FpML. Experiments show that our tool can identify crosslanguage code clones efficiently.

Key words: clone detection, information retrieval, data mining, revision similarity

CLC Number: 

Copyright © Computer and Modernization, All Rights Reserved.
Tel: 0791-86490996 Fax: 0791-86492535 E-mail: jgsdd@163.com
Powered by Beijing Magtech Co., Ltd.