Improving JML: For a safer and more effective language

被引:0
|
作者
Chalin, P [1 ]
机构
[1] Concordia Univ, Dept Comp Sci, Montreal, PQ, Canada
来源
关键词
behavioral interface specification languages; !text type='Java']Java[!/text] Modeling Language; JML; specification language design and semantics; arbitrary precision numeric types; assertion-based languages; formal methods;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
An unusually high number of published JML specifications are invalid or inconsistent, including cases from the security critical area of smart card applications. We claim that these specification errors are due to a mismatch between user expectations and the current JML semantics of expressions over numeric types. At the heart of the problem is JML's language design decision to assign to arithmetic operators the same semantics as in Java. Consequently, JML arithmetic is bounded in precision and more importantly loss of precision occurs stealthily. After a short discussion of JML language design goals and objectives, we introduce JMLa, an adaptation of JML supporting primitive arbitrary precision numeric types. To support our claim that the identified specification errors are due to JML's divergence from user expectations, we demonstrate that the invalidities and inconsistencies disappear under JMLa semantics with either no, or minor syntactic changes to the specifications. Other advantages of JMLa are illustrated including safety-how it allows an automated static checker like ESC/Java to detect more specification and implementation errors. We also briefly illustrate how these issues are applicable to other assertion-based languages like Eiffel.
引用
收藏
页码:440 / 461
页数:22
相关论文
共 50 条
  • [1] Mammography: Better, safer, and more effective?
    Linton, Otha W.
    Schauer, David A.
    RADIOLOGY, 2006, 240 (01) : 3 - 5
  • [2] Towards safer and more effective analgesia
    Stein, Christoph
    VETERINARY JOURNAL, 2013, 196 (01): : 6 - 7
  • [3] A safer and more effective intervention for radiculopathic pain
    Willis, ML
    Martin, DC
    ANESTHESIOLOGY, 2005, 102 (04) : 869 - 869
  • [4] A SAFER AND MORE EFFECTIVE TREATMENT REGIMEN FOR ECLAMPSIA
    BHALLA, AK
    DHALL, GI
    DHALL, K
    AUSTRALIAN & NEW ZEALAND JOURNAL OF OBSTETRICS & GYNAECOLOGY, 1994, 34 (02): : 144 - 148
  • [5] LOW DOSE DICLOFENAC: SAFER AND MORE EFFECTIVE
    Palmieri, Beniamino
    Vadala, Maria
    Luca, Raffaele
    Aspiro, Anna
    Barbieri, Erio
    Imbrogno, Raffaello
    Garelli, Andrea
    Milan, Paolo
    Lazzaroni, Giovanni
    Melchionda, Michele
    Palmieri, Lucia
    GAZZETTA MEDICA ITALIANA ARCHIVIO PER LE SCIENZE MEDICHE, 2020, 179 (12) : 657 - 664
  • [6] Better prescribing for safer, more effective healthcare
    Phizackerley, David
    Chanchlani, Neil
    Mir, Fraz
    BMJ-BRITISH MEDICAL JOURNAL, 2023, 383
  • [9] Indocyanine green: The guide to safer and more effective surgery
    Fransvea, Pietro
    Chiarello, Maria Michela
    Fico, Valeria
    Cariati, Maria
    Brisinda, Giuseppe
    WORLD JOURNAL OF GASTROINTESTINAL SURGERY, 2024, 16 (03):
  • [10] A safer and more effective intervention for radiculopathic pain - In reply
    Rathmell, J
    Aprill, C
    Bogduk, N
    ANESTHESIOLOGY, 2005, 102 (04) : 870 - 870