arrow
返回

Automatic build repair for test cases using incompatible Java versions

delete2024-08-01
delete0
delete
OA
AI
C
Ching Hang Mak *
S
Shing-Chi Cheung
DOI:10.1016/j.infsof.2024.107473delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
Context: Bug bisection is a common technique used to identify a revision that introduces a bug or indirectly fixes a bug, and often involves executing multiple revisions of a project to determine whether the bug is present within the revision. However, many legacy revisions often cannot be successfully compiled due to changes in the programming language or tools used in the compilation process, adding complexity and preventing automation in the bisection process. Objective: In this paper, we introduce an approach to repair test cases of Java projects by performing dependency minimization. Our approach aims to remove classes and methods that are not required for the execution of one or more test cases. Unlike existing state-of-the-art techniques, our approach performs minimization at source-level, which allows compile-time errors to be fixed. Methods: A standalone Java tool implementing our technique was developed, and we evaluated our technique using subjects from Defects4J retargeted against Java 8 and 17. Results: Our evaluation showed that a majority of subjects can be repaired solely by performing minimization, including replicating the test results of the original version. Furthermore, our technique is also shown to achieve accurate minimized results, while only adding a small overhead to the bisection process. Conclusion: Our proposed technique is shown to be effective for repairing build failures with minimal overhead, making it suitable for use in automated bug bisection. Our tool can also be adapted for use cases such as bug corpus creation and refactoring.
Keyword:
Maintenance engineering
Java
Tools
Software engineering
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

On The Introduction of Automatic Program Repair in Bloomberg
err2021-07-01
err32
errOAAI
errKirbas, Serkan; Windels, Etienne; McBello, Olayori; Kells, Kevin; Pagano, Matthew; Szalanski, Rafal; Nowack, Vesna; Winter, Emily Rowan; Counsell, Steve; Bowes, David; Hall, Tracy; Haraldsson, Saemundur; Woodward, John
err分享
err收藏
Automatic Repair of Timestamp Comparisons自动修复时间戳比较
err2021-11-01
err2
errOAAI
errLiva, Giovanni; Khan, Muhammad Taimoor; Pinzger, Martin; Spegni, Francesco; Spalazzi, Luca
err分享
err收藏
Automatic Detection and Repair Recommendation of Directive Defects in Java API Documentation
err2020-09-01
err32
errOAAI
errZhou, Yu; Wang, Changzhi; Yan, Xin; Chen, Taolue; Panichella, Sebastiano; Gall, Harald
err分享
err收藏
err分享
err收藏

期刊

Information and Software Technology 封面图
Information and Software Technology
IF:
4.3
论文数:
3.8K
被引数:
9.5K

机构

暂无机构信息
引用论文

引用论文

err分享
err收藏
Molecular spectrum of background mutation at the hprt locus in human T-lymphocytes
err1993-01-01
err0
PREAI
errSai-Mei Hou; Ann-Marie Steen; Susann Fäit; Björn Andersson
err分享
err收藏
Automated Program Repair
err2019-11-21
err231
PREAI
errLe Goues, Claire; Pradel, Michael; Roychoudhury, Abhik
err分享
err收藏
err分享
err收藏
err分享
err收藏
The β-blocker carvedilol and the benznidazole modulate the cardiac immune response in the acute infection induced by Colombian strain of the Trypanosoma cruzi
err2018-10-18
err0
errOAAI
errAline Luciano Horta; Vivian Paulino Figueiredo; Ana Luisa Junqueira Leite; Guilherme de Paula Costa; Ana Paula de Jesus Menezes; Camila de Oliveira Ramos; Tamiles Caroline Fernandes Pedrosa; Frank Silva Bezerra; Paula Melo de Abreu Vieira; André Talvani
err分享
err收藏
学者 查看更多内容