• Home
  • Search
  • Specifying and checking method call sequences of Java programs
  • Cite Icon33
  • https://doi.org/10.1007/s11219-006-9001-4Copy DOI Icon

Specifying and checking method call sequences of Java programs

Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

In a pre and postcondition-style specification, it is difficult to specify the allowed sequences of method calls, referred to as protocols. The protocols are essential properties of reusable object-oriented classes and application frameworks, and the approaches based on the pre and postconditions, such as design by contracts (DBC) and formal behavioral interface specification languages (BISL), are being accepted as a practical and effective tool for describing precise interfaces of (reusable) program modules. We propose a simple extension to the Java Modeling Language (JML), a BISL for Java, to specify protocol properties in an intuitive and concise manner. The key idea of our approach is to separate protocol properties from functional properties written in pre and post-conditions and to specify them in a regular expression-like notation. The semantics of our extension is formally defined and provides a foundation for implementing runtime checks. Case studies have been performed to show the effectiveness our approach. We believe that our approach can be adopted by other BISLs.

Similar Papers
  • Conference Article
  • Citations4

On the Relationship between the Object Constraint Language (OCL) and the Java Modeling Language (JML)

  • Jan 01, 2006
  • Ali Hamie
  • Research Article
  • Citations14

JML Support for Primitive Arbitrary Precision Numeric Types: Definition and Semantics.

  • Jan 01, 2004
  • The Journal of Object Technology
  • Patrice Chalin
  • Conference Article
  • Citations6

Verification of JML generic types with Yices

  • May 01, 2011
  • Néstor Cataño +2
  • Research Article
  • Citations55

Formal methods for smart cards: an experience report

  • Nov 11, 2004
  • Science of Computer Programming
  • C.-B Breunesse +3
  • Conference Article
  • Citations13

Preliminary design of a unified JML representation and software infrastructure

  • Jul 06, 2009
  • Robby +1
  • Conference Article
  • Citations16

On the Effectiveness of Contracts as Test Oracles in the Detection and Diagnosis of Race Conditions and Deadlocks in Concurrent Object-Oriented Software

  • Sep 01, 2011
  • Wladimir Araujo +2
  • Dissertation
  • Citations1

Enhancing a behavioral interface specification language with temporal logic features

  • Apr 28, 2012
  • Faraz Hussain
  • Conference Article

Formal verification of structured analysis and design in HOS

  • Jan 01, 2005
  • C.-C Chiang +1
  • Research Article
  • Citations12

Reusing a JML Specification Dedicated to Verification for Testing, and Vice-Versa: Case Studies

  • Jun 02, 2009
  • Journal of Automated Reasoning
  • Lydie Du Bousquet +4
  • Research Article
  • Citations6

Conformance test development with the Java modeling language

  • Feb 02, 2017
  • Concurrency and Computation: Practice and Experience
  • Hans Søndergaard +2
  • Book Chapter

A Formal Policy Specification Language for an 802.11 WLAN with Enhanced Security Network

  • Jan 01, 2005
  • Handan Gül Çalıklı +1
  • Research Article
  • Citations10

Reducing the use of nullable types through non-null by default and monotonic non-null

  • Dec 01, 2008
  • IET Software
  • P Chalin +2
  • Research Article
  • Citations2

A Case Study in Matching Test and Proof Coverage

  • Aug 01, 2007
  • Electronic Notes in Theoretical Computer Science
  • Y Ledru +3
  • Research Article
  • Citations1

Standardization of Formal Specification Languages

  • Nov 01, 1995
  • IFAC Proceedings Volumes
  • William P Milam
  • Book Chapter

Structural Refinement: An Effective OCL-Based Testing Approach

  • Nov 02, 2014
  • A Jalila +1
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.