DeepAI AI Chat
Log In Sign Up

Recommendation of Exception Handling Code in Mobile App Development

08/19/2019
by   Tam The Nguyen, et al.
Auburn University
0

In modern programming languages, exception handling is an effective mechanism to avoid unexpected runtime errors. Thus, failing to catch and handle exceptions could lead to serious issues like system crashing, resource leaking, or negative end-user experiences. However, writing correct exception handling code is often challenging in mobile app development due to the fast-changing nature of API libraries for mobile apps and the insufficiency of their documentation and source code examples. Our prior study shows that in practice mobile app developers cause many exception-related bugs and still use bad exception handling practices (e.g. catch an exception and do nothing). To address such problems, in this paper, we introduce two novel techniques for recommending correct exception handling code. One technique, XRank, recommends code to catch an exception likely occurring in a code snippet. The other, XHand, recommends correction code for such an occurring exception. We have developed ExAssist, a code recommendation tool for exception handling using XRank and XHand. The empirical evaluation shows that our techniques are highly effective. For example, XRank has top-1 accuracy of 70 87

READ FULL TEXT
07/06/2018

On the Use of Context in Recommending Exception Handling Code Examples

Studies show that software developers often either misuse exception hand...
02/13/2018

Automated Reporting of GUI Design Violations for Mobile Apps

The inception of a mobile app often takes form of a mock-up of the Graph...
08/02/2017

Revisiting Exception Handling Practices with Exception Flow Analysis

Modern programming languages, such as Java and C#, typically provide fea...
09/22/2020

App Parameter Energy Profiling: Optimizing App Energy Drain by Finding Tunable App Parameters

In this paper, we observe that modern mobile apps come with a large numb...
09/08/2021

AppQ: Warm-starting App Recommendation Based on View Graphs

Current app ranking and recommendation systems are mainly based on user-...
04/18/2018

Highly Relevant Routing Recommendation Systems for Handling Few Data Using MDL Principle

Many classification algorithms existing today suffer in handling many so...
03/08/2021

Siri, Write the Next Method

Code completion is one of the killer features of Integrated Development ...