Automated translation of VDM to JML-annotated Java

被引:0
|
作者
Peter W. V. Tran-Jørgensen
Peter Gorm Larsen
Gary T. Leavens
机构
[1] Aarhus University,
[2] University of Central Florida,undefined
关键词
Design-by-Contract; Formal methods; VDM; Java; JML; Code-generation;
D O I
暂无
中图分类号
学科分类号
摘要
When a system specified using the Vienna Development Method (VDM) is realised using code-generation, no guarantees are currently made about the correctness of the generated code. In this paper, we improve code-generation of VDM models by taking contract-based elements such as invariants and pre- and postconditions into account during the code-generation process. The contract-based elements of the Vienna Development Method Specification Language (VDM-SL) are translated into corresponding constructs in the Java Modelling Language (JML) and used to validate the generated code against the properties of the VDM model. VDM-SL and JML are both Design-by-Contract (DbC) languages, with the difference that VDM-SL supports abstract modelling and system specification, while JML is used for detailed specification of Java classes and interfaces. We describe the semantic differences between the contract-based elements of VDM-SL and JML and formulate the translation as a set of rules. We further demonstrate how dynamic JML assertion checks can be used to ensure the consistency of VDM’s subtypes when a model is code-generated. The translator is fully automated and produces JML-annotated Java programs that can be checked for correctness using JML tools.
引用
收藏
页码:211 / 235
页数:24
相关论文
共 50 条
  • [31] Towards an industrial grade IVE for Java and next generation research platform for JML
    Dependable Software Research Group , Department of Computer Science and Software Engineering, Concordia University, Montreal, QC, Canada
    不详
    Int. J. Softw. Tools Technol. Trans., 6 (429-446):
  • [32] Points-to analysis for Java']Java using annotated constraints
    Rountev, A
    Milanova, A
    Ryder, BG
    ACM SIGPLAN NOTICES, 2001, 36 (11) : 43 - 55
  • [33] Towards an industrial grade IVE for Java and next generation research platform for JML
    Chalin P.
    Robby
    James P.R.
    Lee J.
    Karabotsos G.
    International Journal on Software Tools for Technology Transfer, 2010, 12 (6) : 429 - 446
  • [34] Bidirectional Translation between OCL and JML for Round-trip Engineering
    Shimba, Hiroaki
    Hanada, Kentrao
    Okano, Kozo
    Kusumoto, Shinji
    2013 20TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2013), VOL 2, 2013, : 49 - 54
  • [35] Java']JavaScript annotated archives.
    Gillespie, T
    LIBRARY JOURNAL, 1998, 123 (12) : 126 - 126
  • [36] AN ANNOTATED TRANSLATION BY CHOURAQUI,ANDRE
    GERGELY, T
    FRANCAIS MODERNE, 1980, 48 (04): : 336 - 345
  • [37] Opera Translation An Annotated Bibliography
    Matamala, Anna
    Orero, Pilar
    TRANSLATOR, 2008, 14 (02): : 427 - 451
  • [38] Anan koshiki An Annotated Translation
    Ambros, Barbara R.
    JAPANESE JOURNAL OF RELIGIOUS STUDIES, 2016, 43 (01) : 1 - 24
  • [39] Automated cobol to Java']Java recycling
    Mossienko, M
    SEVENTH EUROPEAN CONFERENCE ON SOFTWARE MAINTENANCE AND REENGINEERING, PROCEEDINGS, 2003, : 40 - 49
  • [40] JAVA']JAVA wrappers for automated interoperability
    Cheng, N
    Berzins, V
    Luqi
    Bhattacharya, S
    DATABASES IN NETWORKED INFORMATION SYSTEMS, PROCEEDINGS, 2001, 1966 : 45 - 64