Aspectizing exception handling: a quantitative study

  • Authors:
  • Fernando Castor Filho;Cecília Mary F. Rubira;Raquel de A. Maranhão Ferreira;Alessandro Garcia

  • Affiliations:
  • Institute of Computing, State University of Campinas, Campinas, SP, Brazil;Institute of Computing, State University of Campinas, Campinas, SP, Brazil;Institute of Computing, State University of Campinas, Campinas, SP, Brazil;Computing Department, Lancaster University, Lancaster, UK

  • Venue:
  • Advanced Topics in Exception Handling Techniques
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

It is usually assumed that the implementation of exception handling can be better modularized by the use of aspect-oriented programming (AOP). However, the trade-offs involved in using AOP with this goal are not yet well-understood. To the best of our knowledge, no work in the literature has attempted to assess whether AOP really promotes an enhancement in well-understood quality attributes other than separation of concerns, when used for modularizing non-trivial exception handling code. This paper presents a quantitative study of the adequacy of aspects for modularizing exception handling code. The study consisted in refactoring part of a real object-oriented system so that the code responsible for handling exceptions was moved to aspects. We employed a suite of metrics to measure quality attributes of the original and refactored systems, including coupling, cohesion, and conciseness. We found that AOP improved separation of concerns between exception handling code and normal application code. However, contradicting the general intuition, the aspect-oriented version of the system did not present significant gains for any of the four size metrics we employed.