Instrumenting Contracts with Aspect-Oriented Programming to Increase Observability and Support Debugging

  • Authors:
  • Lionel C. Briand;W. J. Dzidek;Yvan Labiche

  • Affiliations:
  • Carleton University and Simula Research Laboratory;Simula Research Laboratory;Carleton University

  • Venue:
  • ICSM '05 Proceedings of the 21st IEEE International Conference on Software Maintenance
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

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.