arrow
Return

Detecting Java Code Clones Based on Bytecode Sequence Alignment

delete2019-01-01
delete13
delete
OA
AI
D
Dongjin Yu *
J
Jiazha Yang
陈欣 cover
陈欣 (Xin Chen)
J
Jie Chen
DOI:10.1109/ACCESS.2019.2898411delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
When the source code is copied and pasted or modified, there will be a lot of identical or similar code snippets in the software system, which are called code clones. Because code clones are believed to result in undesirable maintainability of software, numerous approaches and techniques have been proposed for code clone detection. However, most of them are based on the source code, while only a few employ the bytecode to detect code clones. In this paper, we introduce an approach based on Java bytecode, which mainly contains the steps of bytecode sequence alignment and similarity score comparison. In particular, we apply the Smith-Waterman algorithm to align bytecode sequences for precise matching. Moreover, we separately consider the similarities between instruction sequences and method call sequences, thus improving its effectiveness in detecting code clones. We conducted an extensive experiment on five open-source software to evaluate the proposed approach. The results show that our approach outperforms other state-of-the-art techniques.
Keywords:
Code clones
code clone detection
Java bytecode
code sequence alignment
code similarities
instruction block
method call sequences
A Large-Gap Clone Detection Approach Using Sequence Alignment via Dynamic Parameter Optimization
err2019-01-01
err10
errOAAI
errLiu, Jinze; Wang, Tao; Feng, Chenhui; Wang, Huaimin; Li, Dongsheng
errShare
errSave
A Systematic Review on Code Clone Detection
err2019-01-01
err84
errOAAI
errUl Ain, Qurat; Butt, Wasi Haider; Anwar, Muhammad Waseem; Azam, Farooque; Maqbool, Bilal
errShare
errSave
Code2Img: Tree-Based Image Transformation for Scalable Code Clone Detection
err2023-09-01
err5
PREAI
errHu, Yutao; Fang, Yilin; Sun, Yifan; Jia, Yaru; Wu, Yueming; Zou, Deqing; Jin, Hai
errShare
errSave
errShare
errSave
Efficient transformer with code token learner for code clone detection
err2023-03-01
err14
PREAI
errZhang, Aiping; Fang, Liming; Ge, Chunpeng; Li, Piji; Liu, Zhe
errShare
errSave
A systematic literature review on source code similarity measurement and clone detection: Techniques, applications, and challenges
err2023-10-01
err27
errOAAI
errZakeri-Nasrabadi, Morteza; Parsa, Saeed; Ramezani, Mohammad; Roy, Chanchal; Ekhtiarzadeh, Masoud
errShare
errSave
Graph-based code semantics learning for efficient semantic code clone detection
err2023-04-01
err12
PREAI
errYu, Dongjin; Yang, Quanxin; Chen, Xin; Chen, Jie; Xu, Yihang
errShare
errSave

Journal

IEEE Access cover
IEEE Access
IF:
3.6
Papers:
10.1W
Citations:
36.3W

Organization

Hangzhou Dianzi University cover
Hangzhou Dianzi University
Scholars:
2.0K
Papers: 654
Citations: 6.0K
Cited Papers

Cited Papers

Lys63/Met1-hybrid ubiquitin chains are commonly formed during the activation of innate immune signalling
err2016-06-01
err0
errOAAI
errChristoph H. Emmerich; Siddharth Bakshi; Ian R. Kelsall; Juanma Ortiz-Guerrero; Natalia Shpiro; Philip Cohen
errShare
errSave
Characterization of polymer matrix and low melting point solder for anisotropic conductive film
err2008-02-01
err0
PREAI
errYong-Sung Eom; Ji-Won Baek; Jong-Tae Moon; Jae-Do Nam; Jong-Min Kim
errShare
errSave
Software clone detection: A systematic review
err2013-07-01
err291
PREAI
errRattan, Dhavleesh; Bhatia, Rajesh; Singh, Maninder
errShare
errSave
Comparison and evaluation of clone detection tools
err2007-09-01
err510
errOAAI
errBellon, Stefan; Koschke, Rainer; Antoniol, Giuliano; Krinke, Jens; Merlo, Ettore
errShare
errSave
researcher View more