Exceptions and aspects
Fernando Castor, Nélio Cacho, Eduardo Figueiredo et al. · ACM SIGSOFT International Symposium on Foundations of Software Engineering (FSE) · 2006
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 well-understood. This paper presents an in-depth study of the adequacy of the AspectJ language for modularizing exception handling code. The study consisted in refactoring existing applications so that the code responsible for implementing heterogeneous error handling strategies was moved to separate aspects. We have performed quantitative assessments of four systems - three object-oriented and one aspect-oriented - based on four quality attributes, namely separation of concerns, coupling, cohesion, and conciseness. Our investigation also included a multi-perspective analysis of the refactored systems, including (i) the reusability of the aspectized error handling code, (ii) the beneficial and harmful aspectization scenarios, and (iii) the scalability of AOP to aspectize exception handling in the presence of other crosscutting concerns.
Cited by 131 works. doi:10.1145/1181775.1181794
Authors
- Fernando Castor
- Nélio Cacho
- Eduardo Figueiredo
- Raquel Maranhão
- Alessandro Daeli Garcia
- Cecília M. F. Rubira
References
- Aspect-oriented programming
- A metrics suite for object oriented design
- Aspect-Oriented Programming
- Aspect-oriented programming
- Fault Tolerance: Principles and Practice
- Exception handling
- Fault tolerance: principles and practice
- Design pattern implementation in Java and aspectJ
- Dependability of Resilient Computers
- abc