Can aspects implement contracts?

  • Authors:
  • Stephanie Balzer;Patrick Th. Eugster;Bertrand Meyer

  • Affiliations:
  • Department of Computer Science, ETH Zurich (Swiss Federal Institute of Technology), Zürich, Switzerland;Department of Computer Science, ETH Zurich (Swiss Federal Institute of Technology), Zürich, Switzerland;Department of Computer Science, ETH Zurich (Swiss Federal Institute of Technology), Zürich, Switzerland

  • Venue:
  • RISE'05 Proceedings of the Second international conference on Rapid Integration of Software Engineering Techniques
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

Design by ContractTMis commonly cited as an example of the “crosscutting” concerns that aspect-oriented programming can address. We test this conjecture by attempting to implement contracts through aspects and assessing the outcome. The results of this experiment cast doubt on the validity of the conjecture, showing that aspects appear unable to capture contracts in a way that retains the benefits of the Design by Contract methodology.