Can Aspects Implement Contracts?

  • Stephanie Balzer
  • Patrick Th. Eugster
  • Bertrand Meyer
Conference paper

DOI: 10.1007/11751113_11

Part of the Lecture Notes in Computer Science book series (LNCS, volume 3943)
Cite this paper as:
Balzer S., Eugster P.T., Meyer B. (2006) Can Aspects Implement Contracts?. In: Guelfi N., Savidis A. (eds) Rapid Integration of Software Engineering Techniques. RISE 2005. Lecture Notes in Computer Science, vol 3943. Springer, Berlin, Heidelberg

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.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag Berlin Heidelberg 2006

Authors and Affiliations

  • Stephanie Balzer
    • 1
  • Patrick Th. Eugster
    • 1
  • Bertrand Meyer
    • 1
  1. 1.Department of Computer ScienceETH Zurich (Swiss Federal Institute of Technology)ZürichSwitzerland

Personalised recommendations