• DocumentCode
    228615
  • Title

    Is Exception Handling a Reusable Aspect?

  • Author

    Almeida, Adauto ; Barreiros, Emanoel ; Saraiva, Juliana ; Castor, Fernando ; Soares, S.

  • Author_Institution
    Inf. Center, Univ. Fed. de Pernambuco, Recife, Brazil
  • fYear
    2014
  • fDate
    29-30 Sept. 2014
  • Firstpage
    32
  • Lastpage
    41
  • Abstract
    A number of studies have evaluated the impact of modularizing the exception handling concern using aspect-oriented programming (AOP). Even though some of these studies have claimed that reuse through AOP is possible and advantageous in some cases, they have not focused specifically on reuse, often using the overall number of lines of code as a proxy for it. This has produced often contradictory results that are difficult to understand and extrapolate. In this paper we describe a study whose goal is to answer the question in the title of the paper. We have extracted exception handlers from 10 distinct applications to AspectJ aspects and, whenever possible, reused the handlers that were duplicated throughout each application. We have also collected a number of metrics from these systems and analyzed whether there is a relationship between the exception handling strategies that an application employs and the extent to which handlers implementing them are reusable. We discuss some scenarios and complicating factors related to reuse and present solutions that we have found to circumvent these complications. We also analyze limitations of current AspectJ constructs.
  • Keywords
    aspect-oriented programming; software reusability; AOP; AspectJ; aspect-oriented programming; exception handling strategies; Computer architecture; Feature extraction; Java; Measurement; Positron emission tomography; Programming; Software; aspect-oriented prograaming; exception handling; exception handling reuse;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Components, Architectures and Reuse (SBCARS), 2014 Eighth Brazilian Symposium on
  • Conference_Location
    Maceio
  • Type

    conf

  • DOI
    10.1109/SBCARS.2014.17
  • Filename
    7012980