Instrumenting contracts with aspect-oriented programming to increase observability and support debugging
Lionel Briand, Wojciech J. Dzidek, Yvan Labiche · 2005
In this paper we report on how aspect-oriented programming (AOP), using AspectJ, can be employed to automatically and efficiently instrument contracts and invariants in Java. The paper focuses on the templates to instrument preconditions, postconditions, and class invariants, and the necessary instrumentation for compliance-checking to the Liskov substitution principle.