Static analysis to support the evolution of exception structure in object-oriented systems
The DOI matches its Crossref record; 27 of the 27 references it cites were found in a registry or an index.
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.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
(1994) · Cited by 21,711
(2009) · Cited by 6,571
Cousot, P., & Cousot, R. (1977) · Proceedings of the 4th ACM SIGACT-SIGPLAN symposium on Principles of programming languages - POPL '77 · doi:10.1145/512950.512973 · Cited by 6,279
Stroustrup, B. (1985) · Cited by 4,409
The Java Language Specification
Gosling, J., Joy, B., & Steele, G. L. (1996) · Cited by 3,924
Milner, R., Harper, R., MacQueen, D., & Tofte, M. (1997) · The MIT Press eBooks · doi:10.7551/mitpress/2319.001.0001 · Cited by 2,419 · cited 2×
“Human-oriented static analysis for exception handling has been proposed for three languages with large user-bases: ML [Milner et al. 1990], a functional language; Ada-83 [ANSI 1983], an imperative language; Java, an object-oriented language.”
BackgroundAbadi, M., & Cardelli, L. (1996) · Monographs in Computer Science · doi:10.1007/978-1-4419-8598-9 · Cited by 1,001
The C++ programming language (2nd ed.)
Stroustrup, B. (1991) · Addison-Wesley Longman Publishing Co., Inc. eBooks · Cited by 859
Reference Manual for the ADA Programming Language
Ledgard, H. (1983) · Springer eBooks · Cited by 769
Optimization of Object-Oriented Programs Using Static Class Hierarchy Analysis
Dean, J., Grove, D., & Chambers, C. (2007) · Lecture Notes in Computer Science · doi:10.1007/3-540-49538-x_5 · Cited by 610
Exception handling: issues and a proposed notation
Goodenough, J. B. (1975) · Communications of the ACM · doi:10.1145/361227.361230 · Cited by 496 · cited 2×
“Syntactically, an exception-handling mechanism provides a means to raise an exceptional condition explicitly, and a means to express a block of code to handle one or more exceptional conditions [Goodenough 1975].”
BackgroundProgramming Language Pragmatics
(2009) · Elsevier eBooks · doi:10.1016/b978-0-12-374514-9.x0001-8 · Cited by 221 · cited 1×
“Several languages, including Java, support the declaration of a list of the exception types, the exception interface, that may propagate out of the method [Scott 2000].”
MethodLiskov, B. H., & Snyder, A. (1979) · IEEE Transactions on Software Engineering · doi:10.1109/tse.1979.230191 · Cited by 195
Analysis and testing of programs with exception handling constructs
Sinha, S. K., & Harrold, M. J. (2000) · IEEE Transactions on Software Engineering · doi:10.1109/32.877846 · Cited by 188 · cited 1×
“2001], or controland data-flow analysis in the presence of exceptions [Choi et al. 1999; Sinha and Harrold 2000]).”
Interprocedural constant propagation
Callahan, D. P., Cooper, K. D., Kennedy, K., & Torczon, L. (2004) · ACM SIGPLAN Notices · doi:10.1145/989393.989412 · Cited by 140
Efficient and precise modeling of exceptions for the analysis of Java programs
Choi, J.-D., Grove, D., Hind, M., et al. (1999) · ACM SIGPLAN-SIGSOFT Workshop on Program Analysis for Software Tools and Engineering (PASTE) · doi:10.1145/316158.316171 · Cited by 134 · cited 2×
“2001], or controland data-flow analysis in the presence of exceptions [Choi et al. 1999; Sinha and Harrold 2000]).”
BackgroundIssues with exception handling in object-oriented systems
(1997) · doi:10.1007/bfb0053375 · Cited by 94 · cited 4×
“Three exception-handling models are commonly referred to in the literature [Buhr and Mok 2000; Miller and Tripathi 1997; Yemini and Berry 1985].”
BackgroundMethodInfluentialA modular verifiable exception handling mechanism
Yemini, S., & Berry, D. M. (1985) · ACM Transactions on Programming Languages and Systems · doi:10.1145/3318.3320 · Cited by 91
Advanced exception handling mechanisms
(2000) · doi:10.1109/32.877844 · Cited by 77 · cited 1×
“Three exception-handling models are commonly referred to in the literature [Buhr and Mok 2000; Miller and Tripathi 1997; Yemini and Berry 1985].”
MethodBook review: A Theory of Objects by Martin Abadi and Luca Cardelli (Springer-Verlag, 1996)
Postow, B. (1999) · ACM SIGACT News · doi:10.1145/309739.1041990 · Cited by 76
Criteria for testing exception-handling constructs in Java programs
Sinha, S. K., & Harrold, M. J. (1999) · IEEE International Conference on Software Maintenance (ICSM) · doi:10.1109/icsm.1999.792624 · Cited by 70
Analyzing exception flow in Java programs
(1999) · doi:10.1145/318774.319251 · Cited by 58 · cited 1×
“The first version of Jex [Robillard and Murphy 1999] was limited to version 1.”
BackgroundType-based analysis of uncaught exceptions
Pessaux, F., & Leroy, X. (1999) · ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL) · doi:10.1145/292540.292565 · Cited by 56
Static analysis of exception handling in Ada
Schaefer, C. F., & Bundy, G. N. (1993) · Software Practice and Experience · doi:10.1002/spe.4380231007 · Cited by 40 · cited 1×
“This model is adapted from the work of Schaefer and Bundy [1993] on Ada systems, and, wherever possible, we use consistent terminology.”
MethodAn abstract interpretation for estimating uncaught exceptions in Standard ML programs
Yi, K. (1998) · Science of Computer Programming · doi:10.1016/s0167-6423(96)00044-5 · Cited by 34
Cited by
Representing concerns in source code
Robillard, M. P., & Murphy, G. C. (2007) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/1189748.1189751 · Cited by 214
Self-citation
Metadata
- Authors
- Robillard, M. P., & Murphy, G. C.
- Venue
- ACM Transactions on Software Engineering and Methodology
- Published
- 2003-04
- Volume
- 12
- Issue
- 2
- Pages
- 191-221
- ISSN
- 1049-331X (ISSN-L)
- 1557-7392
- OpenAlex
- W2165688098
- Cited by
- 167
- References
- 27
- FWCI
- 7.42
- Type
- journal article
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.