Journal article
Towards characterizing bug fixes through dependency-level changes in Apache Java open source projects
Science China. Information sciences, v 65(7)
2022
Abstract
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.
Metrics
Details
- Title
- Towards characterizing bug fixes through dependency-level changes in Apache Java open source projects
- Creators
- Di Cui - Xi'an Jiaotong UniversityLingling Fan - College of Cyber Science, Nankai UniversitySen Chen - College of Intelligence and Computing, Tianjin UniversityYuanfang Cai - Drexel UniversityQinghua Zheng - School of Computer Science and Technology, Xi’an Jiaotong UniversityYang Liu - School of Computer Science and Engineering, Nanyang Technological UniversityTing Liu - School of Cyber Science and Engineering, Xi’an Jiaotong University
- Publication Details
- Science China. Information sciences, v 65(7)
- Publisher
- Science China Press
- Resource Type
- Journal article
- Language
- English
- Academic Unit
- Computer Science
- Web of Science ID
- WOS:000813807600002
- Scopus ID
- 2-s2.0-85132367658
- Other Identifier
- 991019167526104721
InCites Highlights
Data related to this publication, from InCites Benchmarking & Analytics tool:
- Collaboration types
- Domestic collaboration
- International collaboration
- Web of Science research areas
- Computer Science, Information Systems
- Engineering, Electrical & Electronic