首页 | 本学科首页   官方微博 | 高级检索  
     


Unveiling and taming liabilities of aspects in the presence of exceptions: A static analysis based approach
Authors:Roberta Coelho [Author Vitae]  Arndt von Staa [Author Vitae]
Affiliation:a Informatics and Applied Mathematics Department (DIMAp), Federal University of Rio Grande do Norte, Brazil
b Computer Science Department, Pontifical Catholic University of Rio de Janeiro, Brazil
c Computing Department, Lancaster University, Lancaster, UK and École des Mines de Nantes, France
Abstract:As aspects extend or replace existing functionality at specific join points in the code, their behavior may raise new exceptions, which can flow through the program execution in unexpected ways. Assuring the reliability of exception handling code in aspect-oriented (AO) systems is a challenging task. Testing the exception handling code is inherently difficult, since it is tricky to provoke all exceptions during tests, and the large number of different exceptions that can happen in a system may lead to the test-case explosion problem. Moreover, we have observed that some properties of AO programming (e.g., quantification, obliviousness) may conflict with characteristics of exception handling mechanisms, exacerbating existing problems (e.g., uncaught exceptions). The lack of verification approaches for exception handling code in AO systems stimulated the present work. This work presents a verification approach based on a static analysis tool, called SAFE, to check the reliability of exception handling code in AspectJ programs. We evaluated the effectiveness and feasibility of our approach in two complementary ways (i) by investigating if the SAFE tool is precise enough to uncover exception flow information and (ii) by applying the approach to three medium-sized ApectJ systems from different application domains.
Keywords:Exception handling   Aspect-oriented programming   Static analysis   Exception flow analysis   Exception handling rules conformance
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号