A catalogue of bug patterns for exception handling in aspect-oriented programs

  • Authors:
  • Roberta Coelho;Awais Rashid;Arndt von Staa;James Noble;Uirá Kulesza;Carlos Lucena

  • Affiliations:
  • Federal University of Rio, Natal, Brazil;Lancaster University, Lancaster, UK and Ecole des Mines de Nantes, France;Pontifical Catholic University of Rio de Janeiro, Rio de Janeiro, Brazil;Victoria University of Wellington, New Zealand;Federal University of Rio, Natal, Brazil;Pontifical Catholic University of Rio de Janeiro, Rio de Janeiro, Brazil

  • Venue:
  • Proceedings of the 15th Conference on Pattern Languages of Programs
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

Aspects allow a developer to externally add new functionality to a program. This additional functionality may also throw new exceptions that will flow through the program execution until they are handled. Moreover, aspects can also be used to handle exceptions thrown by base code or even other aspects. Unfortunately, exceptions thrown by aspects --- or exceptions that should be handled by them --- may flow through the program execution in unexpected ways leading to failures such as uncaught exceptions or exceptions being caught by the wrong handlers. In a previous empirical study we investigated the causes of such failures in Aspect-Oriented programs. In this paper we present causes of such failures as a catalogue of bug patterns for exception handling in Aspect-Oriented programs.