Conference Proceeding Article
More and more mobile applications run on multiple mobile operating systems to attract more users of different platforms. Although versions on different platforms are implemented in different programming languages (e.g., Java and Objective-C), there must be many code snippets that implement the similar business logic on different platforms. Such code snippets are called cross-platform clones. It is challenging but essential to detect such clones for software maintenance. Due to the practice that developers usually use some common identifiers when implementing the same business logic on different platforms, in this paper, we investigate the identifier similarity of the same mobile application on different platforms and provide insights about the feasibility of cross-platform clone detection via identifier similarity. In our experiment, we have analyzed the source code of 18 open-source cross-platform applications which are implemented on Android, iOS and Windows Phone, and find that the smaller KL-Divergence the application has, the more accurate the clones detected by identifiers will be.
Cross-platform application, Identifier similarity, Code clone
Programming Languages and Compilers | Software Engineering
Software and Cyber-Physical Systems
SoftwareMining 2016 Proceedings of the 5th International Workshop on Software Mining
City or Country
JIANG, Lingxiao; JIANG, Lingxiao; ZHONG, Hao; YU, Haibo; and ZHAO, Jianjun.
On the feasibility of detecting cross-platform code clones via identifier similarity. (2016). SoftwareMining 2016 Proceedings of the 5th International Workshop on Software Mining. 39-42. Research Collection School Of Information Systems.
Available at: http://ink.library.smu.edu.sg/sis_research/3439
Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 4.0 License.