Checking the conformance of java classes against algebraic specifications

  • Authors:
  • Isabel Nunes;Antónia Lopes;Vasco Vasconcelos;João Abreu;Luís S. Reis

  • Affiliations:
  • Faculty of Sciences, University of Lisbon, Lisboa, Portugal;Faculty of Sciences, University of Lisbon, Lisboa, Portugal;Faculty of Sciences, University of Lisbon, Lisboa, Portugal;Faculty of Sciences, University of Lisbon, Lisboa, Portugal;Faculty of Sciences, University of Lisbon, Lisboa, Portugal

  • Venue:
  • ICFEM'06 Proceedings of the 8th international conference on Formal Methods and Software Engineering
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present and evaluate an approach for the run-time conformance checking of Java classes against property-driven algebraic specifications. Our proposal consists in determining, at run-time, whether the classes subject to analysis behave as required by the specification. The key idea is to reduce the conformance checking problem to the runtime monitoring of contract-annotated classes, a process supported today by several runtime assertion-checking tools. Our approach comprises a rather conventional specification language, a simple language to map specifications into Java types, and a method to automatically generate monitorable classes from specifications, allowing for a simple, but effective, runtime monitoring of both the specified classes and their clients.