Method-Level Bug Prediction

被引:0
|
作者
Giger, Emanuel [1 ]
D'Ambros, Marco [2 ]
Pinzger, Martin [3 ]
Gall, Harald C. [1 ]
机构
[1] Univ Zurich, CH-8006 Zurich, Switzerland
[2] Univ Lugano, Lugano, Switzerland
[3] Delft Univ Technol, NL-2600 AA Delft, Netherlands
关键词
method-level bug prediction; fine-grained source code changes; code metrics; STATIC CODE ATTRIBUTES; SOFTWARE; METRICS; FAULTS; VALIDATION; COMPLEXITY; QUALITY;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Researchers proposed a wide range of approaches to build effective bug prediction models that take into account multiple aspects of the software development process. Such models achieved good prediction performance, guiding developers towards those parts of their system where a large share of bugs can be expected. However, most of those approaches predict bugs on file-level. This often leaves developers with a considerable amount of effort to examine all methods of a file until a bug is located. This particular problem is reinforced by the fact that large files are typically predicted as the most bug-prone. In this paper, we present bug prediction models at the level of individual methods rather than at file-level. This increases the granularity of the prediction and thus reduces manual inspection efforts for developers. The models are based on change metrics and source code metrics that are typically used in bug prediction. Our experiments-performed on 21 Java open-source (sub) systems-show that our prediction models reach a precision and recall of 84% and 88%, respectively. Furthermore, the results indicate that change metrics significantly outperform source code metrics.
引用
收藏
页码:171 / 180
页数:10
相关论文
共 50 条
  • [1] Method-level bug prediction
    Giger, Emanuel
    D'Ambros, Marco
    Pinzger, Martin
    Gall, Harald C.
    International Symposium on Empirical Software Engineering and Measurement, 2012, : 171 - 180
  • [2] Method-level Bug Prediction: Problems and Promises
    Chowdhury, Shaiful
    Uddin, Gias
    Hemmati, Hadi
    Holmes, Reid
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2024, 33 (04)
  • [3] Re-evaluating Method-Level Bug Prediction
    Pascarella, Luca
    Palomba, Fabio
    Bacchelli, Alberto
    2018 25TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING (SANER 2018), 2018, : 592 - 601
  • [4] On the performance of method-level bug prediction: A negative result
    Pascarella, Luca
    Palomba, Fabio
    Bacchelli, Alberto
    JOURNAL OF SYSTEMS AND SOFTWARE, 2020, 161
  • [5] An approach of method-level bug localization
    Ni, Zhen
    Bo, Lili
    Li, Bin
    Chen, Tianhao
    Sun, Xiaobing
    Wu, Xiaoxue
    IET SOFTWARE, 2022, 16 (04) : 422 - 437
  • [6] Method-Level Bug Severity Prediction using Source Code Metrics and LLMs
    Mashhadi, Ehsan
    Ahmadvand, Hossein
    Hemmati, Hadi
    2023 IEEE 34TH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING, ISSRE, 2023, : 635 - 646
  • [7] Method-Level Software Bug Localization Enhanced with File Information
    Bo L.-L.
    Zhu C.
    Li B.
    Sun X.-B.
    Tien Tzu Hsueh Pao/Acta Electronica Sinica, 2023, 51 (03): : 613 - 621
  • [8] On the Effects of File-level Information on Method-level Bug Localization
    Amasaki, Sousuke
    Aman, Hirohisa
    Yokogawa, Tomoyuki
    2020 46TH EUROMICRO CONFERENCE ON SOFTWARE ENGINEERING AND ADVANCED APPLICATIONS (SEAA 2020), 2020, : 314 - 321
  • [9] Method-level bug localization using hybrid multi-objective search
    Almhana, Rafi
    Kessentini, Marouane
    Mkaouer, Wiem
    INFORMATION AND SOFTWARE TECHNOLOGY, 2021, 131
  • [10] FineLocator: A novel approach to method-level fine-grained bug localization by query expansion
    Zhang, Wen
    Li, Ziqiang
    Wang, Qing
    Li, Juan
    INFORMATION AND SOFTWARE TECHNOLOGY, 2019, 110 : 121 - 135