Characterizing the Exception Handling Code of Android Apps

被引:1
作者
Queiroz, Francisco Diogo [1 ]
Coelho, Roberta [1 ]
机构
[1] Univ Fed Rio Grande do Norte, Dept Informat & Appl Math, Natal, RN, Brazil
来源
PROCEEDINGS OF 2016 X BRAZILIAN SYMPOSIUM ON SOFTWARE COMPONENTS, ARCHITECTURES AND REUSE (SBCARS) | 2016年
关键词
Exception handling; Android development; survey; exploratory study; !text type='JAVA']JAVA[!/text;
D O I
10.1109/SBCARS.2016.25
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Android apps are becoming more and more popular. The number of such apps is astonishingly increasing in a daily rate, as well as the number of users affected by their crashes. Android apps as other Java apps may crash due to faults on the exception handling (EH) code (e.g. uncaught exceptions). Techniques for exception detection and handling are not an optional add-on but a fundamental part of such apps. Yet, no study has investigated the main characteristics of the EH code of mobile apps nor the developers perspective about the good and bad practices of EH in such context. This paper reports two complementary studies: one that inspected the EH code of 15 popular Android apps (which overall comprises of 3490 try-catch-finally blocks); and other study which surveyed 47 Android experts to get their opinion about the good and bad practices of EH development in Android environment. Some outcomes of the studies shows a high occurrence of exception swallowing and only few apps sending exception information to a remote server - both considered by Android experts as bad practices that negatively impact the app robustness.
引用
收藏
页码:131 / 140
页数:10
相关论文
共 23 条
[1]   Categorizing Faults in Exception Handling: A Study of Open Source Projects [J].
Barbosa, Eiji Adachi ;
Garcia, Alessandro ;
Barbosa, Simone D. J. .
2014 28TH BRAZILIAN SYMPOSIUM ON SOFTWARE ENGINEERING (SBES 2014), 2014, :11-20
[2]  
Bloch Joshua, 2008, Effective java
[3]  
Burt R.S., 2005, Brokerage and Closure: An Introduction to Social Capital
[4]  
Cabral B, 2007, LECT NOTES COMPUT SC, V4609, P151
[5]   How Does Exception Handling Behavior Evolve? An Exploratory Study in Java']Java and C# Applications [J].
Cacho, Nelio ;
Barbosa, Eiji Adachi ;
Araujo, Juliana ;
Pranto, Frederico ;
Garcia, Alessandro ;
Cesar, Thiago ;
Soares, Eliezio ;
Cassio, Arthur ;
Filipe, Thomas ;
Garcia, Israel .
2014 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME), 2014, :31-40
[6]  
Coelho R, 2008, LECT NOTES COMPUT SC, V5142, P207, DOI 10.1007/978-3-540-70592-5_10
[7]   Unveiling Exception Handling Bug Hazards in Android based on GitHub and Google Code Issues [J].
Coelho, Roberta ;
Almeida, Lucas ;
Gousios, Georgios ;
van Deursen, Arie .
12TH WORKING CONFERENCE ON MINING SOFTWARE REPOSITORIES (MSR 2015), 2015, :134-145
[8]   Unveiling and taming liabilities of aspects in the presence of exceptions: A static analysis based approach [J].
Coelho, Roberta ;
von Staa, Arndt ;
Kulesza, Uira ;
Rashid, Awais ;
Lucena, Carlos .
INFORMATION SCIENCES, 2011, 181 (13) :2700-2720
[9]   An exploratory study on exception handling bugs in Java']Java programs [J].
Ebert, Felipe ;
Castor, Fernando ;
Serebrenik, Alexander .
JOURNAL OF SYSTEMS AND SOFTWARE, 2015, 106 :82-101
[10]  
Goransson A., 2014, EFFICIENT ANDROID TH, P1