[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
10.1145/3639478.3643075acmconferencesArticle/Chapter ViewAbstractPublication PagesicseConference Proceedingsconference-collections
short-paper

An Empirical Study on Cross-language Clone Bugs

Published: 23 May 2024 Publication History

Abstract

Many applications have implementations in different languages. Although their languages are different, they can implement similar or even identical functionalities. If an implementation has a bug, the other implementations can have corresponding bugs. In this paper, we call them cross-language clone bugs, or mirror bugs for short. Mirror bugs are important since many applications release implementations in different languages. From mirror bugs, it can be feasible to learn more bug patterns, and thus detect more types of bugs. Although researchers have conducted empirical studies to analyze the bugs in clones, to the best of our knowledge, no study has ever explored mirror bugs. As a result, many research questions are still open. For example, are there any mirror bugs in real projects? Are bug fixes in a language useful to detect and repair bugs in other languages? To answer the above questions, in this paper, we conduct the first empirical study on mirror bugs. In this study, we manually analyze 402 bugs that are collected from four projects, and each project releases a Java implementation and C# implementation. Our study presents answers to two interesting research questions. According to our results, there is a timely need for a tool that assists in detecting mirror bugs. Indeed, we find that some programmers already manually identify and fix mirror bugs, even without any tool support.

References

[1]
2020. https://hibernate.atlassian.net/browse/HHH-14216.
[2]
2020. https://github.com/nhibernate/nhibernate-core/issues/2552.
[3]
2020. https://github.com/hibernate/hibernate-orm/pull/3590.
[4]
2020. https://github.com/nhibernate/nhibernate-core/pull/2576.
[5]
2021. https://issues.apache.org/jira/browse/LUCENE-10118.
[6]
2022. https://locationtech.github.io/jts/.
[7]
2022. https://github.com/NetTopologySuite/NetTopologySuite.
[8]
Xiao Cheng, Zhiming Peng, Lingxiao Jiang, Hao Zhong, Haibo Yu, and Jianjun Zhao. 2016. Mining revision histories to detect cross-language clones without intermediates. In Proc. ASE. 696--701.
[9]
Li Jia, Hao Zhong, Xiaoyin Wang, Linpeng Huang, and Xuansheng Lu. 2021. The symptoms, causes, and repairs of bugs inside a deep learning library. Journal of Systems and Software 177 (2021), 110935.
[10]
Yanjie Jiang, Hui Liu, Nan Niu, Lu Zhang, and Yamin Hu. 2021. Extracting concise bug-fixing patches from human-written patches in version control systems. In Proc. ICSE. 686--698.
[11]
Sunghun Kim, Kai Pan, and E. James Whitehead Jr. 2006. Memories of bug fixes. In Proc. ESEC/FSE, Michal Young and Premkumar T. Devanbu (Eds.). ACM, 35--45.
[12]
Nicholas A. Kraft, Brandon W. Bonds, and Randy K. Smith. 2008. Cross-language Clone Detection. In Proc. SEKE. 54--59.
[13]
Tung Thanh Nguyen, Hoan Anh Nguyen, Nam H Pham, Jafar Al-Kofahi, and Tien N Nguyen. 2010. Recurring bug fixes in object-oriented programs. In Proc. 32nd ICSE. 315--324.
[14]
Xiao Xuan, Xiaoqiong Zhao, Ye Wang, and Shanping Li. 2015. An Empirical Study of Bugs in Industrial Financial Systems. IEICE Trans. Inf. Syst. 98-D, 12 (2015), 2322--2327.
[15]
Hao Zhong, Xiaoyin Wang, and Hong Mei. 2020. Inferring bug signatures to detect real bugs. IEEE Transactions on Software Engineering 48, 2 (2020), 571--584.

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
ICSE-Companion '24: Proceedings of the 2024 IEEE/ACM 46th International Conference on Software Engineering: Companion Proceedings
April 2024
531 pages
ISBN:9798400705021
DOI:10.1145/3639478
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

Sponsors

In-Cooperation

  • Faculty of Engineering of University of Porto

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 23 May 2024

Check for updates

Qualifiers

  • Short-paper

Funding Sources

  • National Nature Science Foundation of China

Conference

ICSE-Companion '24
Sponsor:

Acceptance Rates

Overall Acceptance Rate 276 of 1,856 submissions, 15%

Upcoming Conference

ICSE 2025

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • 0
    Total Citations
  • 39
    Total Downloads
  • Downloads (Last 12 months)39
  • Downloads (Last 6 weeks)4
Reflects downloads up to 07 Jan 2025

Other Metrics

Citations

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media