Title :
Should We Beware the Exceptions? An Empirical Study on the Eclipse Project
Author :
Marinescu, Corneliu
Author_Institution :
West Univ. of Timisoara, Timisoara, Romania
Abstract :
Exception handling is a mechanism that highlights exceptional functionality of software systems. Currently there are empirical studies pointing out that design entities (classes) that use exceptions are more defect prone than the other classes and sometimes developers neglect exceptional functionality, minimizing its importance. In this paper we investigate if classes that use exceptions are the most complex classes from software systems and, consequently, have an increased likelihood to exhibit defects. We also detect two types of improper usages of exceptions in three releases of Eclipse and investigate the relations between classes that handle/do not handle properly exceptions and the defects those classes exhibit. The results show that (i) classes that use exceptions are more complex than the other classes and (ii) classes that handle improperly the exceptions in the source code exhibit an increased likelihood of exhibiting defects than classes which handle them properly. Based on the provided evidence, practitioners get knowledge about the correlations between exceptions and complexity and are advised once again about the negative impact deviations from best programming practices have at a source code level.
Keywords :
exception handling; software fault tolerance; source code (software); Eclipse project; defect prone; design classes; design entities; exception handling; exceptional functionality; programming practices; software systems; source code level; Accuracy; Complexity theory; Correlation; Data mining; Measurement; Programming; Software systems;
Conference_Titel :
Symbolic and Numeric Algorithms for Scientific Computing (SYNASC), 2013 15th International Symposium on
Conference_Location :
Timisoara
Print_ISBN :
978-1-4799-3035-7
DOI :
10.1109/SYNASC.2013.40