A runtime assertion checker for the Java Modeling Language
The DOI matches its Crossref record; 58 of the 58 references it cites were found in a registry or an index.
Abstract
JML compiler to translate Java programs annotated with JML specifications into Java bytecode. The compiled bytecode transparently checks JML specifications at runtime. The JML compiler supports separate and modular compilation. The approach brings programming benefits such as debugging and testing to BISLs and also helps programmers to use BISLs in their daily programming. A set of translation rules are defined from JML expressions into assertion checking code. The translation rules handle various kinds of undefinedness, such as runtime exceptions and non-executable constructs, in such a way as to both satisfy the standard rules of logic and detect as many assertion violations as possible. The rules also support various forms of quantifiers. Specification-only declarations such as model fields, ghost fields, and model methods are translated into access methods; e.g., an access method for a model field is an abstraction function that calculates an abstract value from the program state. The specification state of a stateful interface, due to specification-only fields such as ghost fields, is represented as a separate assertion class. Thus, an object's specification state is distributed over the object itself and one assertion object for each interface that its class implements. Assertion checking is also distributed in that a subtype delegates the responsibility of checking inherited specifications to its supertypes (or the assertion classes of its superinterfaces). The delegation approach supports multiple inheritance, and is modular. Finally, the effectiveness and practicality of runtime assertion checking is demonstrated by applying it to program testing. An approach is implemented that significantly automates unit testing. The key idea of the approach is to view interface specifications as test oracles and to use the runtime assertion checker as the decision procedure of the test oracles. The approach also shows that the runtime assertion checker can be an effective framework for developing specification-based tools.
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
Extreme Programming Explained: Embrace Change
Beck, K. L., & Andres, C. (2000) · Cited by 5,902
Dijkstra, E. W. (1976) · CERN Document Server (European Organization for Nuclear Research) · Cited by 4,733
Object-Oriented Software Construction
Meyer, B. (1988) · UCLA - Biblioteca de Ciencias y Tecnologia Felix Morales Bueno · Cited by 4,011
An axiomatic basis for computer programming
Hoare, C. A. R. (1969) · Communications of the ACM · doi:10.1145/363235.363259 · Cited by 4,002
Meyer, B. (1992) · Computer · doi:10.1109/2.161279 · Cited by 2,162 · cited 11×
“The use of abstract, specification-only fields and methods can be seen as an evolutionary advance over the design-by-contract approaches [108] [109] [110] [111] that only use program fields and methods for writing assertions.”
InfluentialKernighan, B. W., & Ritchie, D. M. (1978) · Cited by 1,857
Systematic software development using VDM
Jones, C. B. (1986) · Prentice Hall International (UK) Ltd. eBooks · Cited by 1,715
Knuth, D. E. (1984) · The Computer Journal · doi:10.1093/comjnl/27.2.97 · Cited by 1,467
Extended static checking for Java
Flanagan, C., Leino, K. R. M., Lillibridge, M., Nelson, G., Saxe, J. B., & Stata, R. (2002) · Proceedings of the ACM SIGPLAN 2002 conference on Programming language design and implementation · doi:10.1145/512529.512558 · Cited by 1,340 · cited 2×
“A represents clause defines this mapping for a model field by stating how its value is related to the program state [50] [89] [95] [96].”
The Annotated C++ Reference Manual
Ellis, M. A., & Stroustrup, B. (1990) · CERN Document Server (European Organization for Nuclear Research) · Cited by 811
Preliminary design of JML: a behavioral interface specification language for java
Leavens, G. T., Baker, A. L., & Ruby, C. (2006) · ACM SIGSOFT Software Engineering Notes · doi:10.1145/1127878.1127884 · Cited by 790
An experimental evaluation of the assumption of independence in multiversion programming
Knight, J. C., & Leveson, N. G. (1986) · IEEE Transactions on Software Engineering · doi:10.1109/tse.1986.6312924 · Cited by 774
Larch: Languages and Tools for Formal Specification
Guttag, J. V., Horning, J. J., Garland, S. J., Jones, K. D., Modet, A., & Wing, J. M. (1993) · Springer eBooks · doi:10.1007/978-1-4612-2704-5 · Cited by 618 · cited 3×
“JML combines the practicality of design-bycontract language like Eiffel [109] with the expressiveness and formality of model-oriented specification languages such as VDM [66], Z [141], and Larch [59].”
Testing Programs with the Aid of a Compiler
Hamlet, R. G. (1977) · IEEE Transactions on Software Engineering · doi:10.1109/tse.1977.231145 · Cited by 612 · cited 2×
“The conventional way of implementing a test oracle is to compare the test output to some pre-calculated, presumably correct, output [60] [119].”
Korat: automated testing based on Java predicates
Boyapati, C., Khurshid, S., & Marinov, D. (2002) · ACM SIGSOFT Software Engineering Notes · doi:10.1145/566171.566191 · Cited by 593
Abstraction and Specification in Program Development
Liskov, B. H., & Guttag, J. V. (1986) · CERN Document Server (European Organization for Nuclear Research) · Cited by 545
Using prototypical objects to implement shared behavior in object-oriented systems
Lieberman, H. (1986) · ACM SIGPLAN Notices · doi:10.1145/960112.28718 · Cited by 540
Proof of Correctness of Data Representations
Hoare, C. A. R. (2002) · Springer eBooks · doi:10.1007/978-3-642-59412-0_24 · Cited by 481
JCrasher: an automatic robustness tester for Java
Csallner, C., & Smaragdakis, Y. (2004) · Software: Practice and Experience · doi:10.1002/spe.602 · Cited by 426
JML: A Notation for Detailed Design
Leavens, G. T., Baker, A. L., & Ruby, C. (1999) · Behavioral Specifications of Businesses and Systems · doi:10.1007/978-1-4615-5229-1_12 · Cited by 417
Leino, K. R. M. (1998) · Programming Concepts and Methods PROCOMET ’98 · doi:10.1007/978-0-387-35358-6_1 · Cited by 393 · cited 1×
“Formal specifications also serve as more readable documentation than testing code, and can be used as input to other tools such as extended static checkers [37].”
A practical approach to programming with assertions
Rosenblum, D. S. (1995) · IEEE Transactions on Software Engineering · doi:10.1109/32.341844 · Cited by 334 · cited 7×
“Eiffel’s success in DBC contributed to the proliferation of similar notations and tools in many other programming languages, including C [36] [134] [160], C++ [42] [57] [58] [104] [129] [158], Java [5] [44] [47] [71] [81] [82] [116] [117], .”
InfluentialSoftware testing based on formal specifications: a theory and a tool
Bernot, G., Claude Gaudel, M., & Marre, B. (1991) · Software Engineering Journal · doi:10.1049/sej.1991.0040 · Cited by 323 · cited 1×
“There are many research papers published on the subject of testing using formal specifications [12] [24] [34] [80] [132].”
TEST-INFECTED: PROGRAMMERS LOVE WRITING TESTS
Beck, K., & Gamma, E. (2000) · More Java Gems · doi:10.1017/cbo9780511550881.029 · Cited by 274 · cited 3×
“By combining JML with JUnit (a popular unit testing tool for Java [8]), the approach was implemented as a unit testing tool (jmlunit), that significantly automates unit testing of Java classes.”
InfluentialA Simple and Practical Approach to Unit Testing: The JML and JUnit Way
Cheon, Y., & Leavens, G. T. (2002) · Lecture Notes in Computer Science · doi:10.1007/3-540-47993-7_10 · Cited by 228 · cited 10×
“Leavens for implementing this extension to the earlier global test fixture approach [29].”
InfluentialSelf-citationHow the design of JML accommodates both runtime assertion checking and formal verification
Leavens, G. T., Cheon, Y., Clifton, C. C., Ruby, C., & Cok, D. R. (2004) · Science of Computer Programming · doi:10.1016/j.scico.2004.05.015 · Cited by 216
Self-citationBartetzko, D., Fischer, C., Möller, M., & Wehrheim, H. (2001) · Electronic Notes in Theoretical Computer Science · doi:10.1016/s1571-0661(04)00247-6 · Cited by 211 · cited 6×
“An example is the assertion facility (assert statements) of the Java programming language [147] and most design-by-contract tools [5] [81] [109].”
InfluentialUsing test oracles generated from program documentation
Peters, D. K., & Parnas, D. L. (1998) · IEEE Transactions on Software Engineering · doi:10.1109/32.667877 · Cited by 171 · cited 8×
“Several researchers have already noticed that if a program is formally specified, it should be possible to use the specification as an oracle [2] [123].”
InfluentialLeino, K. R. M. (1998) · ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA) · doi:10.1145/286936.286953 · Cited by 157
Design by Contract, by Example
Mitchell, R., & McKim, J. (2001) · Cited by 125
jContractor: A Reflective Java Library to Support Design By Contract
Karaorman, M., Hölzle, U., & Bruno, J. L. (1999) · Lecture notes in computer science · doi:10.1007/3-540-48443-4_18 · Cited by 118
Towards Reliable Modular Programs
Leino, K. R. M. (1995) · CaltechAUTHORS (California Institute of Technology) · doi:10.7907/z9cj8bh1 · Cited by 116
Contract Soundness for object-oriented languages
Findler, R. B., & Felleisen, M. (2001) · Conference on Object-Oriented Programming Systems, Languages, and Applications · doi:10.1145/504282.504283 · Cited by 116
Using data groups to specify and check side effects
Leino, K. R. M., Poetzsch‐Heffter, A., & Zhou, Y. (2002) · Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation · doi:10.1145/512529.512559 · Cited by 114
Automatically checking an implementation against its formal specification
Antoy, S., & Hamlet, D. (2000) · IEEE Transactions on Software Engineering · doi:10.1109/32.825766 · Cited by 112
TAOS: Testing with Analysis and Oracle Support
Richardson, D. J. (1994) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/186258.187158 · Cited by 110 · cited 5×
“Most are concerned with techniques and methods for automatically generating test cases from formal specifications, though there are some addressing the problem of automatic generation of test oracles as noted before [2] [123] [132].”
InfluentialA Logic for the Java Modeling Language JML
Jacobs, B., & Poll, E. (2001) · Lecture notes in computer science · doi:10.1007/3-540-45314-8_21 · Cited by 92
Behavioral contracts and behavioral subtyping
Findler, R. B., Latendresse, M., & Felleisen, M. (2001) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/503209.503240 · Cited by 73
Automated regression test generation
Korel, B., & Al-Yami, A. M. (1998) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/271771.271803 · Cited by 68
A propositional logic with 4 values: true, false, divergent and meaningless
Bergstra, J. A., Bethke, I., & Rodenburg, P. H. (1995) · Journal of Applied Non-Classical Logics · doi:10.1080/11663081.1995.10510855 · Cited by 65 · cited 1×
“Some logics introduce even more than one special value, thus, leading to many-valued logics [9] [10].”
Enhancing the pre- and postcondition technique for more expressive specifications
Leavens, G. T., & Baker, A. L. (1999) · Lecture notes in computer science · doi:10.1007/3-540-48118-4_8 · Cited by 64
An Overview of Larch/C++: Behavioral Specifications for C++ Modules
Leavens, G. T. (2007) · Springer eBooks · doi:10.1007/978-0-585-27524-6_8 · Cited by 50
Safely creating correct subclasses without seeing superclass code
Ruby, C., & Leavens, G. T. (2000) · Conference on Object-Oriented Programming Systems, Languages, and Applications · doi:10.1145/353171.353186 · Cited by 49 · cited 3×
“Some features not considered such as frame properties and subclassing contracts can be checked at compile-time through static analysis [22] [135].”
A three-valued logic for software specification and validation: Tertium tamen datur
Konikowska, B., Tarlecki, A., & Blikle, A. (1988) · Lecture notes in computer science · doi:10.1007/3-540-50214-9_19 · Cited by 44
Desugaring JML Method Specifications
Raghavan, A. D., & Leavens, G. T. (2005) · Iowa State University Digital Repository (Iowa State University) · Cited by 42
ADL—an interface definition language for specifying and testing software
Sankar, S., & Hayes, R. (1994) · doi:10.1145/185084.185096 · Cited by 38 · cited 1×
“and others have their own (specialized) languages for the description of test cases and test execution [24] [34] [76] [132] [136].”
The Larch/Smalltalk interface specification language
Cheon, Y., & Leavens, G. T. (1994) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/196092.195325 · Cited by 37 · cited 1×
“While DBC notations emphasize runtime executability of assertions, formal behavioral interface specification languages (BISL) such as the Larch family of interface languages [26] [27] [59] [86] strive to provide facilities for writing abstract, precise, and complete specifications.”
Self-citationDesign by Contract in Smalltalk.
Carrillo-Castellon, M., Molina, J. G., Pimentel, E., & Repiso, I. (1996) · Journal of Object-oriented Programming · Cited by 32
LaLonde, W. R. (1994) · CERN Document Server (European Organization for Nuclear Research) · Cited by 22
A Three-Valued Logic for Software Specification and Validation. Tertium tamen datur
Konikowska, B., Tarlecki, A., & Blikle, A. (1991) · Fundamenta Informaticae · doi:10.3233/fi-1991-14403 · Cited by 20 · cited 1×
“Three-valued logics with “undefined” allows the logical formulae to have the undefined value [11] [14] [68] [79].”
Tan, Y. M. (1994) · DSpace@MIT (Massachusetts Institute of Technology) · Cited by 17
Kleene's three-valued logic and process algebra
Bergstra, J. A., & Alban Ponse, A. (1998) · Information Processing Letters · doi:10.1016/s0020-0190(98)00083-0 · Cited by 17 · cited 1×
“Three-valued logics with “undefined” allows the logical formulae to have the undefined value [11] [14] [68] [79].”
Supporting Design by Contract in Java.
Lackner, M., Krall, A., & Puntigam, F. (2002) · The Journal of Object Technology · doi:10.5381/jot.2002.1.3.a4 · Cited by 16 · cited 6×
“Eiffel’s success in DBC contributed to the proliferation of similar notations and tools in many other programming languages, including C [36] [134] [160], C++ [42] [57] [58] [104] [129] [158], Java [5] [44] [47] [71] [81] [82] [116] [117], .”
InfluentialThe Direct Execution of SPECS-C++: A Model-Based Specification Language for C++ Classes
Wahls, T., Baker, A. L., & Leavens, G. T. (1994) · Iowa State University Digital Repository (Iowa State University) · Cited by 7
Class interface design: Designing for correctness
McKim, J. C., & Mondou, D. A. (1993) · Journal of Systems and Software · doi:10.1016/0164-1212(93)90075-9 · Cited by 7
Process Algebra with Five-Valued Conditions
Bergstra, J. A., & Alban Ponse, A. (n.d.) · Cited by 6
(1983) · HAL
Cited by
The Spec# Programming System: An Overview
Barnett, M., Leino, K. R. M., & Schulte, W. (2005) · Lecture Notes in Computer Science · doi:10.1007/978-3-540-30569-9_3 · Cited by 986
Preliminary design of JML: a behavioral interface specification language for java
Leavens, G. T., Baker, A. L., & Ruby, C. (2006) · ACM SIGSOFT Software Engineering Notes · doi:10.1145/1127878.1127884 · Cited by 790
An overview of JML tools and applications
Burdy, L., Cheon, Y., Cok, D. R., Ernst, M. D., Kiniry, J. R., Leavens, G. T., Leino, K. R. M., & Poll, E. (2005) · International Journal on Software Tools for Technology Transfer · doi:10.1007/s10009-004-0167-4 · Cited by 714
Self-citationA taxonomy and catalog of runtime software-fault monitoring tools
Delgado, N., Gates, A. Q., & Roach, S. (2004) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2004.91 · Cited by 343
A Simple and Practical Approach to Unit Testing: The JML and JUnit Way
Cheon, Y., & Leavens, G. T. (2002) · Lecture Notes in Computer Science · doi:10.1007/3-540-47993-7_10 · Cited by 228
Self-citation
Metadata
- Authors
- Cheon, Y.
- Publisher
- Iowa State University
- Published
- 2003-01-01
- OpenAlex
- W2107778618
- Cited by
- 213
- References
- 58
- Type
- dissertation
- 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.