A study on exception detection and handling using aspect-oriented programming

A study on exception detection and handling using aspect-oriented programming
复制标题

面向方面编程的异常检测与处理研究

DOI:
10.1145/337180.337229
复制
发表时间:
2000
期刊:
Proceedings of the 2000 International Conference on Software Engineering. ICSE 2000 the New Millennium
影响因子:
--
通讯作者:
C. Lopes
C. Lopes
中科院分区:
--
文献类型:
--
作者:
Martin Lippert;C. Lopes

文献摘要

参考文献

被引文献

相似文献

面向方面的编程(AOP)旨在缓解涉及多种代码混乱的情况。该论文报告了一项研究,旨在调查 AOP 缓解与异常检测和处理相关的混乱的能力。我们采用了用 Java/sup TM/ 编写的现有框架(JWAM 框架),并使用 AspectJ/sup TM/(Java 的面向方面编程扩展)部分重新设计了其异常检测和处理方面。我们发现 AspectJ 支持的实现大大减少了与异常检测和处理相关的代码部分。在一种情况下,我们能够将代码减少 4 倍。我们还发现,相对于普通 Java 的原始实现,AspectJ 为异常行为的不同配置提供了更好的支持,对异常行为规范的更改提供了更好的容忍度,更好地支持增量开发,更好的重用,在使用框架的应用程序中自动执行契约,以及更干净的程序文本。我们还发现了 AspectJ 的一些弱点,应该在未来解决。
Aspect oriented programming (AOP) is intended to ease situations that involve many kinds of code tangling. The paper reports on a study to investigate AOP's ability to ease tangling related to exception detection and handling. We took an existing framework written in Java/sup TM/, the JWAM framework, and partially reengineered its exception detection and handling aspects using AspectJ/sup TM/, an aspect oriented programming extension to Java. We found that AspectJ supported implementations that drastically reduced the portion of the code related to exception detection and handling. In one scenario, we were able to reduce that code by a factor of 4. We also found that, with respect to the original implementation in plain Java, AspectJ provided better support for different configurations of exceptional behaviors, more tolerance for changes in the specifications of exceptional behaviors, better support for incremental development, better reuse, automatic enforcement of contracts in applications that use the framework, and cleaner program texts. We also found some weaknesses of AspectJ that should be addressed in the future.
DOI: 10.1007/bfb0053381
发表时间: 1997-01-01
期刊: ECOOP'97: OBJECT-ORIENTED PROGRAMMING
影响因子: --
作者:
Kiczales, G;Lamping, J;Irwin, J
通讯作者: Irwin, J