Analysis and testing of programs with exception handling constructs

被引:81
作者
Sinha, S [1 ]
Harrold, MJ [1 ]
机构
[1] Georgia Inst Technol, Coll Comp, Atlanta, GA 30332 USA
基金
美国国家科学基金会;
关键词
exception handling; control flow analysis; control dependence analysis; data flow analysis; program slicing; structural testing;
D O I
10.1109/32.877846
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Analysis techniques, such as control flow, data flow, and control dependence, are used for a variety of software engineering tasks, including structural and regression testing, dynamic execution profiling, static and dynamic slicing, and program understanding. To be applicable to programs in languages such as Java and C++, these analysis techniques must account for the effects of exception occurrences and exception handling constructs; failure to do so can cause the analysis techniques to compute incorrect results and, thus, limit the usefulness of the applications that use them. This paper discusses the effects of exception handling constructs on several analysis techniques. The paper presents techniques to construct representations for programs with explicit exception occurrences-exceptions that are raised explicitly through throw statements-and exception handling constructs. The paper presents algorithms that use these representations to perform the desired analyses. The paper also discusses several software engineering applications that use these analyses. Finally, the paper describes empirical results pertaining to the occurrence of exception handling constructs in Java programs and their effect on some analysis tasks.
引用
收藏
页码:849 / 871
页数:23
相关论文
共 50 条
[21]   Provably Live Exception Handling [J].
Jacobs, Bart .
17TH WORKSHOP ON FORMAL TECHNIQUES FOR JAVA-LIKE PROGRAMS (FTFJP 2015), 2015,
[22]   Improving Exception Handling with Recommendations [J].
Barbosa, Eiji Adachi .
36TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE COMPANION 2014), 2014, :666-669
[23]   AN EXCEPTION HANDLING MECHANISM FOR SR [J].
HUANG, DT ;
OLSSON, RA .
COMPUTER LANGUAGES, 1990, 15 (03) :163-176
[24]   Demonstrating Exception Handling in JaCaMo [J].
Baldoni, Matteo ;
Baroglio, Cristina ;
Boissier, Olivier ;
Micalizio, Roberto ;
Tedeschi, Stefano .
ADVANCES IN PRACTICAL APPLICATIONS OF AGENTS, MULTI-AGENT SYSTEMS, AND SOCIAL GOOD: THE PAAMS COLLECTION, PAAMS 2021, 2021, 12946 :341-345
[25]   Advanced exception handling mechanisms [J].
Buhr, PA ;
Mok, WYR .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2000, 26 (09) :820-836
[26]   Code Recommendation for Exception Handling [J].
Nguyen, Tam ;
Vu, Phong ;
Nguyen, Tung .
PROCEEDINGS OF THE 28TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE '20), 2020, :1027-1038
[27]   Exception handling in the spreadsheet paradigm [J].
Burnett, M ;
Agrawal, A ;
van Zee, P .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2000, 26 (10) :923-942
[28]   Requirements for software exception handling [J].
Hecht, Herbert .
2008 IEEE AEROSPACE CONFERENCE, VOLS 1-9, 2008, :3340-3346
[29]   A predictive model for exception handling [J].
Lourenco, Joao Ricardo ;
Cabral, Bruno ;
Bernardino, Jorge .
NEW ADVANCES IN INFORMATION SYSTEMS AND TECHNOLOGIES, VOL 1, 2016, 444 :767-776
[30]   Exception Handling in Workflow Systems [J].
Zongwei Luo ;
Amit Sheth ;
Krys Kochut ;
John Miller .
Applied Intelligence, 2000, 13 :125-147