Lessons learned from developing a dynamic OCL constraint enforcement tool for java

Wojciech J. Dzidek, Lionel C. Briand, Yvan Labiche

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Analysis and design by contract allows the definition of a formal agreement between a class and its clients, expressing each party's rights and obligations. Contracts written in the Object Constraint Language (OCL) are known to be a useful technique to specify the precondition and postcondition of operations and class invariants in a UML context, making the definition of object-oriented analysis or design elements more precise while also helping in testing and debugging. In this article, we report on the experiences with the development of ocl2j, a tool that automatically instruments OCL constraints in Java programs using aspect-oriented programming (AOP). The approach strives for automatic and efficient generation of contract code, and a non-intrusive instrumentation technique. A summary of our approach is given along with the results of an initial case study, the discussion of encountered problems, and the necessary future work to resolve the encountered issues.

Original languageEnglish
Title of host publicationSatellite Events at the MoDELS 2005 Conference
Subtitle of host publicationMoDELS 2005 International Workshops OCLWS, MoDeVA, MARTES, AOM, MTiP, WiSME, MODAUI, NfC, MDD, WUsCAM, Revised Selected Papers
Pages10-19
Number of pages10
DOIs
Publication statusPublished - 2006
Externally publishedYes
EventMoDELS 2005 International Workshops OCLWS, MoDeVA, MARTES, AOM, MTiP, WiSME, MODAUI, NfC, MDD, WUsCAM - Montego, Bay, Jamaica
Duration: 2 Oct 20057 Oct 2005

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume3844 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

ConferenceMoDELS 2005 International Workshops OCLWS, MoDeVA, MARTES, AOM, MTiP, WiSME, MODAUI, NfC, MDD, WUsCAM
Country/TerritoryJamaica
CityMontego, Bay
Period2/10/057/10/05

Fingerprint

Dive into the research topics of 'Lessons learned from developing a dynamic OCL constraint enforcement tool for java'. Together they form a unique fingerprint.

Cite this