DocumentCode :
1885106
Title :
Extracting Error Handling to Aspects: A Cookbook
Author :
Filho, Fernando Castor ; Garcia, Alessandro ; Rubira, Cecília Mary F
Author_Institution :
Univ. of Sao Paulo, Sao Paulo
fYear :
2007
fDate :
2-5 Oct. 2007
Firstpage :
134
Lastpage :
143
Abstract :
It is usually assumed that exception handling code can be better modularized by the use of aspect-oriented programming (AOP) techniques. However, recent studies argue that the ad hoc use of AOP can be detrimental to the quality of a system. When refactoring exception handling code to aspects, developers and maintainers need to follow clear and simple principles to obtain a well-structured system design. Otherwise, typical problems that stem from poorly designed/implemented error handling code will arise, e.g. resource leaking and swallowed exceptions. In this paper, we propose a classification for error handling code based on the factors that we found out have more influence on its aspectization. Moreover, we present a scenario catalog comprising combinations of these factors and analyze how these scenarios positively or negatively affect the task of aspectizing exception handling. We evaluated the proposed catalog through a case study where we used it to guide the aspectization of exception handling in two real systems.
Keywords :
error handling; object-oriented programming; software maintenance; aspect-oriented programming; error handling; exception handling code; software refactoring; Computer errors; Computer languages; Computer science; Java; Large-scale systems; Programming; Software systems;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Software Maintenance, 2007. ICSM 2007. IEEE International Conference on
Conference_Location :
Paris
ISSN :
1063-6773
Print_ISBN :
978-1-4244-1256-3
Electronic_ISBN :
1063-6773
Type :
conf
DOI :
10.1109/ICSM.2007.4362626
Filename :
4362626
Link To Document :
بازگشت