DeepAI AI Chat
Log In Sign Up

Recommendation of Exception Handling Code in Mobile App Development

by   Tam The Nguyen, et al.
Auburn University

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


On the Use of Context in Recommending Exception Handling Code Examples

Studies show that software developers often either misuse exception hand...

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...

Revisiting Exception Handling Practices with Exception Flow Analysis

Modern programming languages, such as Java and C#, typically provide fea...

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...

AppQ: Warm-starting App Recommendation Based on View Graphs

Current app ranking and recommendation systems are mainly based on user-...

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

Many classification algorithms existing today suffer in handling many so...

Siri, Write the Next Method

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