{"id":{"repo_id":"iastate","oai_identifier":"oai:dr.lib.iastate.edu:20.500.12876/78385"},"canonical_url":"https://search.ndltd.org/etd/iastate/oai:dr.lib.iastate.edu:20.500.12876/78385","repository":{"repo_id":"iastate","name":"Iowa State University","base_url":"https://dr.lib.iastate.edu/server/oai/request"},"display":{"title":"A runtime assertion checker for the Java Modeling Language","abstract":"<p>The Java Modeling Language (JML) is a formal behavioral interface specification language (BISL) for Java. JML has many advances including specification-only declarations, specifications of interfaces, stateful interfaces, multiple inheritance of specifications, and behavioral subtyping. An approach to runtime assertion checking of JML assertions is presented and implemented as a 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.</p>","abstract_html":"&lt;p&gt;The Java Modeling Language (JML) is a formal behavioral interface specification language (BISL) for Java. JML has many advances including specification-only declarations, specifications of interfaces, stateful interfaces, multiple inheritance of specifications, and behavioral subtyping. An approach to runtime assertion checking of JML assertions is presented and implemented as a 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&#x27;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.&lt;/p&gt;","abstract_has_math":false,"creators":["Cheon, Yoonsik"],"institution":null,"degree_name":"Doctor of Philosophy","degree_level":"dissertation","degree_discipline":null,"degree_department":"Department of Computer Science","school":null,"contributors":[],"advisors":["Gary T. Leavens"],"committee_chairs":[],"committee_members":[],"year":2003,"date_issued":"2003-01-01","date_published":"2003-01-01","updated_at":"2026-11-19T04:42:23Z","subjects":[],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://dr.lib.iastate.edu/handle/20.500.12876/78385"],"render_values":[{"text":"https://dr.lib.iastate.edu/handle/20.500.12876/78385","href":"https://dr.lib.iastate.edu/handle/20.500.12876/78385","code":true}]},{"key":"dc:identifier","label":"Identifier","values":["archive/lib.dr.iastate.edu/rtd/570/"],"render_values":[{"text":"archive/lib.dr.iastate.edu/rtd/570/","href":null,"code":true}]},{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["1569","6075511"],"render_values":[{"text":"1569","href":null,"code":true},{"text":"6075511","href":null,"code":true}]},{"key":"mods:identifier.filename","label":"Mods Identifier Filename","values":["archive/lib.dr.iastate.edu/rtd/570/r_3085895.pdf|||Sat Jan 15 00:59:18 UTC 2022"],"render_values":[{"text":"archive/lib.dr.iastate.edu/rtd/570/r_3085895.pdf|||Sat Jan 15 00:59:18 UTC 2022","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.31274/rtd-180813-9872","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.31274/rtd-180813-9872","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aiastate%3Aoai%3Adr.lib.iastate.edu%3A20.500.12876%2F78385","prefix":"oai_dc"},"source_record":{"url":"https://dr.lib.iastate.edu/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Adr.lib.iastate.edu%3A20.500.12876%2F78385","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Gary T. Leavens"]},{"key":"dc:contributor.department","label":"Department","values":["Department of Computer Science"]},{"key":"dc:creator","label":"Author","values":["Cheon, Yoonsik"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2018-08-24T19:58:14.000"]},{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2020-07-02T05:49:50Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2020-07-02T05:49:50Z"]},{"key":"dc:date.copyright","label":"Dc Date Copyright","values":["Wed Jan 01 00:00:00 UTC 2003"]},{"key":"dc:date.issued","label":"Date","values":["2003-01-01"]},{"key":"dc:relation.orgunit","label":"Dc Relation Orgunit","values":["f7be4eb9-d1d0-4081-859b-b15cee251456"]},{"key":"dc:type","label":"Dc Type","values":["dissertation"]},{"key":"thesis:degree_level","label":"Degree Level","values":["dissertation"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Doctor of Philosophy"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject.discipline","label":"Dc Subject Discipline","values":["Computer Sciences"]},{"key":"dc:subject.keyword","label":"Dc Subject Keyword","values":["Computer science"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["archive/lib.dr.iastate.edu/rtd/570/"]},{"key":"dc:identifier.doi","label":"DOI","values":["https://doi.org/10.31274/rtd-180813-9872"]},{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["1569","6075511"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://dr.lib.iastate.edu/handle/20.500.12876/78385"]},{"key":"mods:identifier.filename","label":"Mods Identifier Filename","values":["archive/lib.dr.iastate.edu/rtd/570/r_3085895.pdf|||Sat Jan 15 00:59:18 UTC 2022"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["<p>The Java Modeling Language (JML) is a formal behavioral interface specification language (BISL) for Java. JML has many advances including specification-only declarations, specifications of interfaces, stateful interfaces, multiple inheritance of specifications, and behavioral subtyping. An approach to runtime assertion checking of JML assertions is presented and implemented as a 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.</p>"]},{"key":"dc:format.mimetype","label":"Dc Format Mimetype","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["A runtime assertion checker for the Java Modeling Language"]},{"key":"dspace:entity.type","label":"Dspace Entity Type","values":["Publication"]},{"key":"local:admin","label":"Local Admin","values":["isulib-bepress-aws-west","rtd/570"]}]}],"canonical_facts":{"dc:contributor.advisor":["Gary T. Leavens"],"dc:contributor.department":["Department of Computer Science"],"dc:creator":["Cheon, Yoonsik"],"dc:date":["2018-08-24T19:58:14.000"],"dc:date.accessioned":["2020-07-02T05:49:50Z"],"dc:date.available":["2020-07-02T05:49:50Z"],"dc:date.copyright":["Wed Jan 01 00:00:00 UTC 2003"],"dc:date.issued":["2003-01-01"],"dc:description.abstract":["<p>The Java Modeling Language (JML) is a formal behavioral interface specification language (BISL) for Java. JML has many advances including specification-only declarations, specifications of interfaces, stateful interfaces, multiple inheritance of specifications, and behavioral subtyping. An approach to runtime assertion checking of JML assertions is presented and implemented as a 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.</p>"],"dc:format.mimetype":["application/pdf"],"dc:identifier":["archive/lib.dr.iastate.edu/rtd/570/"],"dc:identifier.doi":["https://doi.org/10.31274/rtd-180813-9872"],"dc:identifier.other":["1569","6075511"],"dc:identifier.uri":["https://dr.lib.iastate.edu/handle/20.500.12876/78385"],"dc:language.iso":["en"],"dc:relation.orgunit":["f7be4eb9-d1d0-4081-859b-b15cee251456"],"dc:subject.discipline":["Computer Sciences"],"dc:subject.keyword":["Computer science"],"dc:title":["A runtime assertion checker for the Java Modeling Language"],"dc:type":["dissertation"],"dspace:entity.type":["Publication"],"local:admin":["isulib-bepress-aws-west","rtd/570"],"mods:identifier.filename":["archive/lib.dr.iastate.edu/rtd/570/r_3085895.pdf|||Sat Jan 15 00:59:18 UTC 2022"],"thesis:degree_level":["dissertation"],"thesis:degree_name":["Doctor of Philosophy"]},"updated_at":"2026-11-19T04:42:23Z"}