Modular Transformation of Java']Java Exceptions Modulo Errors

被引:2
|
作者
Rubbens, Robert [1 ]
Lathouwers, Sophie [1 ]
Huisman, Marieke [1 ]
机构
[1] Univ Twente, Formal Methods & Tools, Enschede, Netherlands
关键词
Deductive verification; !text type='Java']Java[!/text; VerCors; Exceptions; Finally; Errors;
D O I
10.1007/978-3-030-85248-1_5
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
Deductive verifiers are used more and more in both academia and industry to prevent costly bugs. Their capabilities of verifying concurrent programs are getting better, but they are still lagging behind with regard to many major programming language features such as exceptions. To improve the situation, this work presents a semantics of Java exceptions which reduces the annotation burden on the user, while still allowing verification of exceptions. This is accomplished by ignoring sources of errors which are irrelevant to functional verification. Additionally, to deal with the complex control flow introduced by finally, a transformation is proposed that simplifies verification of exceptional postconditions and finally into postconditions and goto. We implement the approach and evaluate it against several common exception patterns.
引用
收藏
页码:67 / 84
页数:18
相关论文
共 50 条
  • [21] Data flow analysis of Java']Java programs in the presence of exceptions
    Shelekhov, VI
    Kuksenko, SV
    PERSPECTIVES OF SYSTEM INFORMATICS, 2000, 1755 : 389 - 395
  • [22] Safe locking for multi-threaded Java']Java with exceptions
    Johnsen, Einar Broch
    Thi Mai Thuong Tran
    Owe, Olaf
    Steffen, Martin
    JOURNAL OF LOGIC AND ALGEBRAIC PROGRAMMING, 2012, 81 (03): : 257 - 283
  • [23] A Formal Approach to implement java']java exceptions in cooperative systems
    Hanazumi, Simone
    de Melo, Ana C. V.
    JOURNAL OF SYSTEMS AND SOFTWARE, 2017, 131 : 475 - 490
  • [24] Deadlock resolution via exceptions for dependable Java']Java applications
    Zeng, FC
    2003 INTERNATIONAL CONFERENCE ON DEPENDABLE SYSTEMS AND NETWORKS, PROCEEDINGS, 2003, : 731 - 740
  • [25] Modular Java']Java Web Applications
    Kaegi, Simon Richard
    Deugo, Dwight
    APPLIED COMPUTING 2008, VOLS 1-3, 2008, : 688 - +
  • [26] Efficient and Effective Handling of Exceptions in Java']Java Points-to Analysis
    Kastrinis, George
    Smaragdakis, Yannis
    COMPILER CONSTRUCTION, CC 2013, 2013, 7791 : 41 - 60
  • [27] NPEX: Repairing Java']Java Null Pointer Exceptions without Tests
    Lee, Junhee
    Hong, Seongjoon
    Oh, Hakjoo
    2022 ACM/IEEE 44TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2022), 2022, : 1532 - 1544
  • [28] Exceptions in Java']Java and Eiffel: Two extremes in exception design and application
    Kiniry, Joseph R.
    ADVANCED TOPICS IN EXCEPTION HANDLING TECHNIQUES, 2006, 4119 : 288 - 300
  • [29] Testing java exceptions: An instrumentation technique
    Martins, Alexandre L.
    Hanazumi, Simone
    De Melo, Ana C.V.
    Proceedings - IEEE 38th Annual International Computers, Software and Applications Conference Workshops, COMPSACW 2014, 2014, : 626 - 631
  • [30] Mechanisms for secure modular programming in Java']Java
    Bauer, L
    Appel, AW
    Felten, EW
    SOFTWARE-PRACTICE & EXPERIENCE, 2003, 33 (05): : 461 - 480