Title :
An approach for refining JML specification to object oriented code
Author :
Piri, Razieh ; Mirian-Hosseinabadi, Seyed-Hassan
Author_Institution :
Comput. Eng. Dept., Sharif Univ. of Technol., Tehran, Iran
Abstract :
JML is a behavioral interface specification language which has Java as its target implementation language. It combines the idea of using Java expressions from Eiffel language with the model-based approach to specify a program. Refinement calculus is a framework to produce executable code from a specification by preserving the correctness of programs. In this paper some constructs of JML concerning object creation, feature call, exceptional behavior and concurrency constructs are studied and some refinement rules are proposed to obtain an object oriented code in Java from a JML specification containing these constructs. The correctness of these rules is proved by weakest precondition predicate transformer. The refinement of usual constructs in JML such as If-statement, Loop and Assignment from previous works such as Z refinement is also demonstrated.
Keywords :
Java; formal specification; simulation languages; specification languages; Eiffel language; JML specification refinement approach; Java expressions; Java modeling language; behavioral interface specification language; formal methods; model-based approach; refinement calculus; Calculus; Computer interfaces; Concurrent computing; Contracts; Java; Memory management; Object oriented modeling; Programming; Refining; Specification languages; Formal Methods; JML; Object Oriented; Refinement Rule; Specification; Weakest Precondition;
Conference_Titel :
Computer Conference, 2009. CSICC 2009. 14th International CSI
Conference_Location :
Tehran
Print_ISBN :
978-1-4244-4261-4
Electronic_ISBN :
978-1-4244-4262-1
DOI :
10.1109/CSICC.2009.5349604