Write a Blog >>
ASE 2020
Mon 21 - Fri 25 September 2020 Melbourne, Australia
Tue 22 Sep 2020 02:20 - 02:40 at Wombat - Maintenance and Evolution (1) Chair(s): Yi Li

Exception handling is an important built-in feature of many modern programming languages such as Java. It allows developers to deal with abnormal or unexpected conditions by try-catch blocks that may occur at runtime in advance. Missing or improper implementation of exception handling can cause catastrophic consequences such as system crash. However, previous studies reveal that developers are unwilling or feel it hard to adopt exception handling mechanism, and tend to ignore it until a system failure forces them to do so. To help developers with exception handling, existing work produces recommendations such as code examples and exception types, which still requires developers to localize the try blocks and modify the catch block code to fit the context. In this paper, we propose a novel neural approach for automated exception handling, which can predict locations of try blocks and automatically generate the complete catch blocks. We collect a large number of Java methods from GitHub and conduct experiments to evaluate our approach. The evaluation results, including quantitative measurement and human evaluation, show that our approach is highly effective and outperforms all baselines. Our work makes one step further towards automated exception handling.

Tue 22 Sep
Times are displayed in time zone: (UTC) Coordinated Universal Time change

ase-2020-papers
02:20 - 03:20: Research Papers - Maintenance and Evolution (1) at Wombat
Chair(s): Yi LiNanyang Technological University
ase-2020-papers02:20 - 02:40
Talk
Jian ZhangBeihang University, Xu WangBeihang University, Hongyu ZhangUniversity of Newcastle, Australia, Hailong SunBeihang University, Yanjun PuBeihang University, Xudong LiuBeihang University
Pre-print
ase-2020-papers02:40 - 03:00
Talk
Bihuan ChenFudan University, Linlin ChenFudan University, Chen ZhangFudan University, Xin PengFudan University
ase-2020-tool-demonstrations03:00 - 03:10
Talk
Dan ZhangTsinghua University