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 条