Static analysis to support the evolution of exception structure in object-oriented systems

Author:

Robillard Martin P.1,Murphy Gail C.1

Affiliation:

1. University of British Columbia, Vancouver, BC, Canada

Abstract

Exception-handling mechanisms in modern programming languages provide a means to help software developers build robust applications by separating the normal control flow of a program from the control flow of the program under exceptional situations. Separating the exceptional structure from the code associated with normal operations bears some consequences. One consequence is that developers wishing to improve the robustness of a program must figure out which exceptions, if any, can flow to a point in the program. Unfortunately, in large programs, this exceptional control flow can be difficult, if not impossible, to determine.In this article, we present a model that encapsulates the minimal concepts necessary for a developer to determine exception flow for object-oriented languages that define exceptions as objects. Using these concepts, we describe why exception-flow information is needed to build and evolve robust programs. We then describe Jex, a static analysis tool we have developed to provide exception-flow information for Java systems based on this model. The Jex tool provides a view of the actual exception types that might arise at different program points and of the handlers that are present. Use of this tool on a collection of Java library and application source code demonstrates that the approach can be helpful to support both local and global improvements to the exception-handling structure of a system.

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference45 articles.

1. Abadi M. and Cardelli L. 1996. A Theory of Objects. Monographs in Computer Science Springer-Verlag New York NY.]] Abadi M. and Cardelli L. 1996. A Theory of Objects. Monographs in Computer Science Springer-Verlag New York NY.]]

2. Bacon D. F. 1998. Fast and effective optimization of statically typed object-oriented languages. Ph.D. Thesis CSD-98-1017 (Oct.) University of California Berkeley.]] Bacon D. F. 1998. Fast and effective optimization of statically typed object-oriented languages. Ph.D. Thesis CSD-98-1017 (Oct.) University of California Berkeley.]]

3. Advanced exception handling mechanisms

Cited by 70 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Towards automatic labeling of exception handling bugs: A case study of 10 years bug-fixing in Apache Hadoop;Empirical Software Engineering;2024-06-05

2. Lightweight precise automatic extraction of exception preconditions in java methods;Empirical Software Engineering;2023-12-26

3. Which Exception Shall We Throw?;Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering;2022-10-10

4. What Is Thrown? Lightweight Precise Automatic Extraction of Exception Preconditions in Java Methods;2022 IEEE International Conference on Software Maintenance and Evolution (ICSME);2022-10

5. Transcode: Detecting Status Code Mapping Errors in Large-Scale Systems;2021 36th IEEE/ACM International Conference on Automated Software Engineering (ASE);2021-11

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3