Enabling the Runtime Assertion Checking of Concurrent Contracts for the Java Modeling Language

Wladimir Araujo, Lionel C. Briand, and Yvan Labiche
Juniper Networks, Canada; Simula Research Laboratory and University of Oslo, Norway; Carleton University, Canada

Though there exists ample support for Design by Contract (DbC) for sequential programs, applying DbC to concurrent programs presents several challenges. In previous work, we extended the Java Modeling Language (JML) with constructs to specify concurrent contracts for Java programs. We present a runtime assertion checker (RAC) for the expanded JML capable of verifying assertions for concurrent Java programs. We systematically evaluate the validity of system testing results obtained via runtime assertion checking using actual concurrent and functional faults on a highly concurrent industrial system from the telecommunications domain.