Stubber: Compiling Source Code into Bytecode without Dependencies for Java Code Clone Detection
Authors:
- 1 October 2021
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 29-35
Abstract
A lot of clone detection tools for Java have been introduced in recent years. On the one hand, many of these tools work on Java source code and can thus be conveniently evaluated with the state-of-the-art benchmark BigCloneBench and evaluation framework BigCloneEval. On the other hand, certain clone detectors deliberately address the Bytecode and cannot be applied to Java source code. Simple compilation often does not solve the problem due to missing required dependencies, as, e.g., in case of BigCloneBench. In this work, we therefore present the tool STUBBER for compiling Java source code into Bytecode without dependencies. We can show that using Stubber, Bytecode for over 95% of all Java source files and 92.5% of all code clones contained in BigCloneBench can be successfully generated. As a consequence, the evaluation of Bytecode-based clone detectors on BigCloneBench becomes possible and such tools can also be applied to Java source files, even beyond BigCloneBench.Keywords
This publication has 34 references indexed in Scilit:
- SourcererCC2016
- Evaluating clone detection tools with BigCloneBench2015
- SeByte: Scalable clone and similarity search for bytecodeScience of Computer Programming, 2014
- Evaluating Modern Clone Detection Tools2014
- A dataset of clone references with gaps2014
- SeByte: A semantic clone detection tool for intermediate languages2012
- Leveraging clone detection for Internet-scale source code search2012
- Java bytecode clone detection via relaxation on code fingerprint and Semantic Web reasoning2012
- DECKARD: Scalable and Accurate Tree-Based Detection of Code Clones29th International Conference on Software Engineering (ICSE'07), 2007
- An empirical study of code clone genealogies2005