Skip to Main content Skip to Navigation
New interface
Reports (Technical report)

Challenging Analytical Knowledge On Exception-Handling: An Empirical Study of 32 Java Software Packages

Abstract : In this paper, we aim at contributing to the body of knowledge on exception-handling. We take neither an analytical approach (``we think exception handling is good because X and Y'') nor an empirical approach (``most developers do Z and T''). Our method is to compare analytical knowledge against empirical one. We first review the literature to find analytical knowledge on exception handling, we then set up a dataset of 32 Java software applications and an experimental protocol to statically characterize and measure the exception handling design. We eventually compare our measures against the claims on exception handling that authors have made over time. Our results show that some analytical principles for exception design do not support the empirical validation: 1) practitioners violate the principle and 2) upon analysis, there are indeed very good use cases going against this principle. This is in particular the case for ``Empty Catch Blocks are Bad'' and ``Do not Catch Generic Exceptions''.
Document type :
Reports (Technical report)
Complete list of metadata

Cited literature [17 references]  Display  Hide  Download
Contributor : Martin Monperrus Connect in order to contact the contributor
Submitted on : Friday, December 19, 2014 - 1:07:50 PM
Last modification on : Wednesday, October 26, 2022 - 8:13:53 AM
Long-term archiving on: : Saturday, April 15, 2017 - 8:14:01 AM


Files produced by the author(s)


  • HAL Id : hal-01093908, version 1


Martin Monperrus, Maxence Germain de Montauzan, Benoit Cornu, Raphael Marvie, Romain Rouvoy. Challenging Analytical Knowledge On Exception-Handling: An Empirical Study of 32 Java Software Packages. [Technical Report] hal-01093908, Laboratoire d'Informatique Fondamentale de Lille. 2014. ⟨hal-01093908⟩



Record views


Files downloads