MOONSTONE: Support for Understanding and Writing Exception Handling Code

被引:0
|
作者
Kistner, Florian [1 ]
Kery, Mary Beth [2 ]
Puskas, Michael [3 ]
Moore, Steven [2 ]
Myers, Brad A. [2 ]
机构
[1] Tech Univ Munich, Dept Informat, Munich, Germany
[2] Carnegie Mellon Univ, Human Comp Interact Inst, Pittsburgh, PA 15213 USA
[3] Arizona State Univ, Sch Comp Informat & Decis Syst Engn, Tempe, AZ USA
基金
美国国家科学基金会;
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
MOONSTONE is a new plugin for Eclipse that supports developers in understanding exception flow and in writing exception handlers in Java. Understanding exception control flow is paramount for writing robust exception handlers, a task many developers struggle with. To help with this understanding, we present two new kinds of information: ghost comments, which are transient overlays that reveal potential sources of exceptions directly in code, and annotated highlights of skipped code and associated handlers. To help developers write better handlers, MOONSTONE additionally provides project-specific recommendations, detects common bad practices, such as empty or inadequate handlers, and provides automatic resolutions, introducing programmers to advanced Java exception handling features, such as try-with-resources. We present findings from two formative studies that informed the design of MOONSTONE. We then show with a user study that Moonstone improves users' understanding in certain areas and enables developers to amend exception handling code more quickly and correctly.
引用
收藏
页码:63 / +
页数:9
相关论文
共 50 条
  • [41] Exception handling in workflow systems
    Luo, ZW
    Sheth, A
    Kochut, K
    Miller, J
    APPLIED INTELLIGENCE, 2000, 13 (02) : 125 - 147
  • [42] Provably Live Exception Handling
    Jacobs, Bart
    17TH WORKSHOP ON FORMAL TECHNIQUES FOR JAVA-LIKE PROGRAMS (FTFJP 2015), 2015,
  • [43] AN EXCEPTION HANDLING MECHANISM FOR SR
    HUANG, DT
    OLSSON, RA
    COMPUTER LANGUAGES, 1990, 15 (03): : 163 - 176
  • [44] Improving Exception Handling with Recommendations
    Barbosa, Eiji Adachi
    36TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE COMPANION 2014), 2014, : 666 - 669
  • [45] Demonstrating Exception Handling in JaCaMo
    Baldoni, Matteo
    Baroglio, Cristina
    Boissier, Olivier
    Micalizio, Roberto
    Tedeschi, Stefano
    ADVANCES IN PRACTICAL APPLICATIONS OF AGENTS, MULTI-AGENT SYSTEMS, AND SOCIAL GOOD: THE PAAMS COLLECTION, PAAMS 2021, 2021, 12946 : 341 - 345
  • [46] An exception-handling framework
    Visser, A.
    International Journal of Computer Integrated Manufacturing, 8 (03):
  • [47] ANTI-CODE-DISJOINT MAPPING FOR EXCEPTION HANDLING IN SELF-CHECKING SYSTEMS HIERARCHY
    NANYA, T
    COMPUTER SYSTEMS SCIENCE AND ENGINEERING, 1994, 9 (01): : 46 - 53
  • [48] NTS STRUCTURED EXCEPTION HANDLING
    NIEZGODA, S
    HOLT, L
    WOJCIECH, D
    BYTE, 1993, 18 (12): : 317 - &
  • [49] THE MACH EXCEPTION HANDLING FACILITY
    BLACK, DL
    GOLUB, DB
    HAUTH, K
    TEVANIAN, A
    SANZI, R
    SIGPLAN NOTICES, 1989, 24 (01): : 45 - 56
  • [50] EXCEPTION HANDLING FOR C++
    KOENIG, A
    STROUSTRUP, B
    JOURNAL OF OBJECT-ORIENTED PROGRAMMING, 1990, 3 (02): : 16 - &