Logo - Fakultät Illustration



Avoiding Infinite Recursion with Stratified Aspects

AutorInnen: Eric Bodden
Florian Forster
Friedrich Steimann
Kategorie: Konferenzen und Workshops
erschienen in: @Net.Object Days 2006, Erfurt, In: GI-Edition Lecture Notes in Informatics 'NODe 2006/GSEM 2006', Robert Hirschfeld, Andreas Polze and Ryszard Kowalczyk (Hrsg.) , 49-64

Infinite recursion is a known problem of aspect-oriented programming with AspectJ: if no special precautions are taken, aspects advising aspects can easily and unintentionally advise themselves. We present a compiler for an extension of the AspectJ programming language that avoids self reference by associating aspects with levels, and by automatically restricting the scope of pointcuts used by an aspect to join points of lower levels. We report on a case study using our language extension, and provide numbers of the changes necessary for migrating existing applications to it. Our results suggest that we can make programming with AspectJ simpler and safer, without restricting its expressive power unduly.

Download: PDF
Link zur Projektseite
06.05.2008 12:21
FernUni-Logo FernUniversität in Hagen, Fakultät für Mathematik und Informatik, Lehrgebiet Programmiersysteme, 58084 Hagen, Tel.: +49 2331 987-2998