Title :
Improving the Quality of AspectJ Application: Translating Name-Based Pointcuts to Analysis-Based Pointcuts
Author :
Lin Wang ; Aotani, Tomoyuki ; Suzuki, M.
Author_Institution :
Japan Adv. Inst. of Sci. & Technol., Ishikawa, Japan
Abstract :
This paper proposes an approach to improve the quality of AspectJ applications which supports translating name-based point cuts to analysis-based point cuts automatically. Traditional name-based point cuts rely on the names of fields, methods, and classes in the program, which are well known to be fragile against software evolution. Analysis-based point cuts rely on the properties of the program via user-defined static program analysis, which therefore are free from such fragility. However, writing such programs manually is difficult because user has to write her analysis suitable for corresponding properties. Our approach solves the problem by translating name-based point cuts into analysis-based ones, this can be achieved by simply calling the method from within the conditional point cuts. We demonstrate the usefulness of analysis-based point cuts in multiple versions of several open-source AspectJ programs. The results show that the analysis-based point cuts generated by our approach are more robust than their original name-based counterparts.
Keywords :
aspect-oriented programming; program diagnostics; public domain software; AspectJ application quality; analysis-based pointcuts; name-based pointcut translation; open-source AspectJ programs; user-defined static program analysis; Abstracts; Color; Electronic mail; Manganese; Programming; Robustness; Software; Analysis-based pointcuts; Aspect-Oriented Programming (AOP); AspectJ; Fragile pointcut problem; Software maintenance; Software quality; Static program analysis;
Conference_Titel :
Quality Software (QSIC), 2014 14th International Conference on
Conference_Location :
Dallas, TX
Print_ISBN :
978-1-4799-7197-8
DOI :
10.1109/QSIC.2014.34