Studying the Relationship between Exception Handling Practices and Post-release Defects

被引:16
作者
de Padua, Guilherme B. [1 ]
Shang, Weiyi [1 ]
机构
[1] Concordia Univ, Dept Comp Sci & Software Engn, Montreal, PQ, Canada
来源
2018 IEEE/ACM 15TH INTERNATIONAL CONFERENCE ON MINING SOFTWARE REPOSITORIES (MSR) | 2018年
关键词
Exception Handling; Software Quality; Empirical Software Engineering; !text type='JAVA']JAVA[!/text; FLOW;
D O I
10.1145/3196398.3196435
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Modern programming languages, such as Java and C#, typically provide features that handle exceptions. These features separate error-handling code from regular source code and aim to assist in the practice of software comprehension and maintenance. Nevertheless, their misuse can still cause reliability degradation or even catastrophic software failures. Prior studies on exception handling revealed the suboptimal practices of the exception handling flows and the prevalence of their anti-patterns. However, little is known about the relationship between exception handling practices and software quality. In this work, we investigate the relationship between software quality (measured by the probability of having post-release defects) and: (i) exception flow characteristics and (ii) 17 exception handling anti-patterns. We perform a case study on three Java and C# open-source projects. By building statistical models of the probability of post-release defects using traditional software metrics and metrics that are associated with exception handling practice, we study whether exception flow characteristics and exception handling anti-patterns have a statistically significant relationship with post-release defects. We find that exception flow characteristics in Java projects have a significant relationship with post-release defects. In addition, although the majority of the exception handing anti-patterns are not significant in the models, there exist anti-patterns that can provide significant explanatory power to the probability of post-release defects. Therefore, development teams should consider allocating more resources to improving their exception handling practices and avoid the anti-patterns that are found to have a relationship with post-release defects. Our findings also highlight the need for techniques that assist in handling exceptions in the software development practice.
引用
收藏
页码:564 / 575
页数:12
相关论文
共 60 条
[1]  
[Anonymous], 2017, R FDN STAT COMP
[2]  
[Anonymous], 2013, APPL LOGISTIC REGRES
[3]  
[Anonymous], 2017, HANDLING THROWING EX
[4]  
[Anonymous], 2017, R PROGRAM LANG PACKA
[5]  
Asaduzzaman M, 2016, 13TH WORKING CONFERENCE ON MINING SOFTWARE REPOSITORIES (MSR 2016), P516, DOI [10.1109/MSR.2016.068, 10.1145/2901739.2903500]
[6]   Categorizing Faults in Exception Handling: A Study of Open Source Projects [J].
Barbosa, Eiji Adachi ;
Garcia, Alessandro ;
Barbosa, Simone D. J. .
2014 28TH BRAZILIAN SYMPOSIUM ON SOFTWARE ENGINEERING (SBES 2014), 2014, :11-20
[7]  
Bonifácio R, 2015, IEEE INT WORK C SO, P21, DOI 10.1109/SCAM.2015.7335398
[8]   Hidden truth behind .NET's exception handling today [J].
Cabral, B. ;
Sacramento, P. ;
Marques, P. .
IET SOFTWARE, 2007, 1 (06) :233-250
[9]  
Cabral B, 2007, LECT NOTES COMPUT SC, V4609, P151
[10]   A transactional model for automatic exception handling [J].
Cabral, Bruno ;
Marques, Paulo .
COMPUTER LANGUAGES SYSTEMS & STRUCTURES, 2011, 37 (01) :43-61