CMU-ISRI-04-141 Institute for Software Research International School of Computer Science, Carnegie Mellon University
Open Modules: Modular Reasoning about Advice Jonathan Aldrich December 2004
This technical report is an expanded version of a paper
submitted for publication.
CMU-ISRI-04-141.ps
We study this challenge using a new, simple formal model for advice as it appears in languages like AspectJ. We then add a module system designed to leave program functionality as open to extension through advice as possible, while still enabling separate reasoning about the code within a module. Our system, Open Modules, can either be used directly to facilitate separate, component-based development, or can be viewed as a model of the features that certain AOP IDEs provide. We define a formal system for reasoning about the observational equivalence of programs under advice, which can be used to show that clients are unaffected by semantics-preserving changes to a module's implementation. Our model yields insights into the nature of modularity in the presence of advice, provides a mechanism for enforceable contracts between component providers and clients in this setting, and suggests improvements to current AOP IDEs. 21 pages
| |
Return to:
SCS Technical Report Collection This page maintained by reports@cs.cmu.edu |