Title :
A study on exception detection and handling using aspect-oriented programming
Author :
Lippert, Martin ; Lopes, Cristina Videira
Author_Institution :
Dept. of Comput. Sci., Hamburg Univ., Germany
Abstract :
Aspect oriented programming (AOP) is intended to ease situations that involve many kinds of code tangling. The paper reports on a study to investigate AOP´s ability to ease tangling related to exception detection and handling. We took an existing framework written in Java TM, the JWAM framework, and partially reengineered its exception detection and handling aspects using AspectJTM, an aspect oriented programming extension to Java. We found that AspectJ supported implementations that drastically reduced the portion of the code related to exception detection and handling. In one scenario, we were able to reduce that code by a factor of 4. We also found that, with respect to the original implementation in plain Java, AspectJ provided better support for different configurations of exceptional behaviors, more tolerance for changes in the specifications of exceptional behaviors, better support for incremental development, better reuse, automatic enforcement of contracts in applications that use the framework, and cleaner program texts. We also found some weaknesses of AspectJ that should be addressed in the future
Keywords :
Java; exception handling; object-oriented programming; systems re-engineering; AOP; AspectJ; JWAM framework; Java; aspect oriented programming; automatic contract enforcement; code tangling; exception detection; exception handling; exceptional behaviors; incremental development; partial reengineering; program texts; specifications; Application software; Computer errors; Computer science; Contracts; Humans; Java; Laboratories; Permission; Software systems; Usability;
Conference_Titel :
Software Engineering, 2000. Proceedings of the 2000 International Conference on
Conference_Location :
Limerick
Print_ISBN :
1-58113-206-9
DOI :
10.1109/ICSE.2000.870432