Automatic documentation inference for exceptions
The DOI matches its Crossref record; 2 of the 2 references it cites were found in a registry or an index.
Abstract
Exception handling is a powerful and widely-used program-ming language abstraction for constructing robust software systems. Unfortunately, it introduces an inter-procedural flow of control that can be difficult to reason about. Fail-ure to do so correctly can lead to security vulnerabilities, breaches of API encapsulation, and any number of safety policy violations. We present a fully automated tool that statically infers and characterizes exception-causing conditions in Java pro-grams. Our tool is based on an inter-procedural, context-sensitive analysis. The output of this tool is well-suited for use as human-readable documentation of exceptional condi-tions. We evaluate the output of our tool by comparing it to over 900 instances of existing exception documentation in almost two million lines of code. We find that the output of our tool is at least as good as existing documentation 85% of the time and is better 25 % of the time.
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
Exception handling: issues and a proposed notation
Goodenough, J. B. (1975) · Communications of the ACM · doi:10.1145/361227.361230 · Cited by 496
The relevance of software documentation, tools and technologies: a survey
Forward, A., & Lethbridge, T. C. (2002) · Proceedings of the 2002 ACM symposium on Document engineering · doi:10.1145/585058.585065 · Cited by 268 · cited 2×
“While there may be some utility in a system that attempts to exhaustively track all exceptions, those exceptions that are implicitly-thrown are generally indicative of programming errors rather than design choices [39], and their inclusion in an API-level documentation might often be considered inappropriate [14].”
Background
Cited by
Towards automatically generating summary comments for Java methods
Sridhara, G., Hill, E., Muppaneni, D., Pollock, L., & Vijay-Shanker, K. (2010) · Proceedings of the IEEE/ACM international conference on Automated software engineering · doi:10.1145/1858996.1859006 · Cited by 514
“The system takes a method signature and body as input and outputs a natural language summary comment for the method.”
MethodAutomatic generation of natural language summaries for Java classes
Moreno, L., Aponte, J., Sridhara, G., Marcus, A., Pollock, L., & Vijay-Shanker, K. (2013) · 2013 21st International Conference on Program Comprehension (ICPC) · doi:10.1109/icpc.2013.6613830 · Cited by 331
Learning to Generate Pseudo-Code from Source Code Using Statistical Machine Translation
Oda, Y., Fudaba, H., Neubig, G., Hata, H., Sakti, S., Toda, T., & Nakamura, S. (2015) · 2015 30th IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2015.36 · Cited by 250
“For example, Fig.”
Neural-machine-translation-based commit message generation: how far are we?
Liu, Z., Xia, X., Hassan, A. E., Lo, D., Xing, Z., & Wang, X. (2018) · Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering · doi:10.1145/3238147.3238190 · Cited by 247
“Some studies also leverage this framework to generate explanation or summarization for special types of code, e.g., exceptions [12], failed tests [65], parameters of Java methods [58], unit test cases [33, 37] and database usages and constrains [39].”
BackgroundAutoComment: Mining question and answer sites for automatic comment generation
Wong, E., Yang, J., & Tan, L. (2013) · 2013 28th IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2013.6693113 · Cited by 245
“Some generates comments automatically for certain code structures, such as failed test cases [14], exceptions [15], code changes [16] and method parameters [17].”
BackgroundAutomatic documentation generation via source code summarization of method context
McBurney, P. W., & McMillan, C. (2014) · Proceedings of the 22nd International Conference on Program Comprehension · doi:10.1145/2597008.2597149 · Cited by 220
“focuses on Java exceptions [3].”
Automatically documenting program changes
Buse, R. P. L., & Weimer, W. R. (2010) · Proceedings of the IEEE/ACM international conference on Automated software engineering · doi:10.1145/1858996.1859005 · Cited by 219
Self-citationAutomated API Property Inference Techniques
Robillard, M. P., Bodden, E., Kawrykow, D., Mezini, M., & Ratchford, T. (2013) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2012.63 · Cited by 199
Improving automated source code summarization via an eye-tracking study of programmers
Rodeghero, P., McMillan, C., McBurney, P. W., Bosch, N., & D'Mello, S. (2014) · Proceedings of the 36th International Conference on Software Engineering · doi:10.1145/2568225.2568247 · Cited by 198
“Despite this difference, Uwano et al. found that the more time programmers take to scan source code before fixating on a particular section, the more likely they are to locate bugs in that code [61].”
Background@tComment: Testing Javadoc Comments to Detect Comment-Code Inconsistencies
Tan, S. H., Marinov, D., Tan, L., & Leavens, G. T. (2012) · 2012 IEEE Fifth International Conference on Software Testing, Verification and Validation · doi:10.1109/icst.2012.106 · Cited by 197
“Several recent projects infer comments for failed test cases [45], exceptions [14], API function cross-references [26], software changes [15], and semantically related code segments [35], [36].”
BackgroundInferring Resource Specifications from Natural Language API Documentation
Zhong, H., Zhang, L., Xie, T., & Mei, H. (2009) · 2009 IEEE/ACM International Conference on Automated Software Engineering · doi:10.1109/ase.2009.94 · Cited by 190
“Weimer and Necula [41] propose an approach to mine and filter method pairs from execution traces.”
BackgroundAutomatic Source Code Summarization of Context for Java Methods
McBurney, P. W., & McMillan, C. (2016) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2015.2465386 · Cited by 187
“Work by Buse and Weimer focuses on Java exceptions [3].”
MethodAutomatically detecting and describing high level actions within methods
Sridhara, G., Pollock, L., & Vijay-Shanker, K. (2011) · Proceedings of the 33rd International Conference on Software Engineering · doi:10.1145/1985793.1985808 · Cited by 182
“Other documentation generation work has focused on specific aspects of source code [3].”
Background
Metadata
- Authors
- Buse, R. P. L., & Weimer, W. R.
- Venue
- Proceedings of the 2008 international symposium on Software testing and analysis
- Publisher
- ACM
- Published
- 2008-07-20
- Pages
- 273-282
- OpenAlex
- W2064081154
- Cited by
- 122
- References
- 2
- FWCI
- 5.51
- Type
- conference paper
- 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.