arrow
Return

Towards characterizing bug fixes through dependency-level changes in Apache Java open source projects

delete2022-06-10
delete2
PRE
AI
D
Di Cui
L
Lingling Fan
S
Sen Chen
Y
Yuanfang Cai
Q
Qinghua Zheng
刘洋 (Yang Liu)
刘烃 cover
刘烃 (Ting Liu) *
DOI:10.1007/s11432-020-3317-2delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
The complexity and diversity of bug fixes require developers to understand bug fixes from multiple perspectives in addition to fine-grained code changes. The dependencies among files in a software system are an important dimension to inform software quality. Recent studies have revealed that most bug-prone files are always architecturally connected with dependencies, and as one of the best practices in the industry, changes in dependencies should be avoided or carefully made during bug fixing. Hence, in this paper, we take the first attempt to understand bug fixes from the dependencies perspective, which can complement existing code change perspectives. Based on this new perspective, we conducted a systematic and comprehensive study on bug fixes collected from 157 Apache open source projects, involving 140456 bug reports and 182621 bug fixes in total. Our study results show that a relatively high proportion of bug fixes (30%) introduce dependency-level changes when fixing the corresponding 33% bugs. The bugs, whose fixes introduce dependency-level changes, have a strong correlation with high priority, large fixing churn, long fixing time, frequent bug reopening, and bug inducing. More importantly, patched files with dependency-level changes in their fixes, consume much more maintenance costs compared with those without these changes. We further summarized three representative patch patterns to explain the reasons for the increasing costs. Our study unveils useful findings based on qualitative and quantitative analysis and also provides new insights that might benefit existing bug prediction techniques. We release a large set of benchmarks and also implement a prototype tool to automatically detect dependency-level changes from bug fixes, which can warn developers and remind them to design a better fix.
Keywords:
empirical software engineering
software maintenance
software evolution
software architecture
software design

Journal

Science China Information Sciences cover
Science China Information Sciences
IF:
7.6
Papers:
4.9K
Citations:
8.9K

Organization

D
Drexel University
Scholars:
1.3W
Papers: 1.1W
Citations: 2.2W
X
xi'an jiaotong university
Scholars:
9.1W
Papers: 6.6W
Citations: 75
T
tianjin university
Scholars:
7.9W
Papers: 5.7W
Citations: 88
N
Nanyang Technological University
Scholars:
4.9W
Papers: 4.8W
Citations: 8.1W
N
nankai university
Scholars:
4.7W
Papers: 3.2W
Citations: 74
researcher View more organizations