Dynamic Dispatch for Method Contracts Through Abstract Predicates

dc.creatorMostowski, Wojciech
dc.creatorUlbrich, Mattias
dc.date.accessioned2021-02-18T20:16:08Z
dc.date.available2021-02-18T20:16:08Z
dc.date.created2019
dc.description.abstractDynamic method dispatch is a core feature of object-oriented programming by which the executed implementation for a polymorphic method is only chosen at runtime. In this paper, we present a specification and verification methodology which extends the concept of dynamic dispatch to design-by-contract specifications. The formal specification language JML has only rudimentary means for polymorphic abstraction in expressions. We promote these to fully flexible specification-only query methods called model methods that can, like ordinary methods, be overridden to give specifications a new semantics in subclasses in a transparent and modular fashion. Moreover, we allow them to refer to more than one program state which give us the possibility to fully abstract and encapsulate two-state specification contexts, i.e., history constraints and method postconditions. Finally, we provide an elegant and flexible mechanism to specify restrictions on specifications in subtypes. Thus behavioural subtyping can be enforced, yet it still allows for other specification paradigms. We provide the semantics for model methods by giving a translation into a first order logic and according proof obligations. We fully implemented this framework in the KeY program verifier and successfully verified relevant examples. We have also implemented an extension to KeY to support permission-based verification of concurrent Java programs. In this context model methods provide a modular specification method to treat code synchronisation through API methods.spa
dc.format.extent30 páginasspa
dc.format.mimetypeapplication/pdfspa
dc.identifier.doi10.1007/978-3-319-46969-0 7
dc.identifier.otherhttps://directory.doabooks.org/handle/20.500.12854/30241
dc.identifier.urihttps://hdl.handle.net/20.500.12010/17467
dc.language.isoengspa
dc.publisherSpringer Naturespa
dc.rights.accessrightsinfo:eu-repo/semantics/openAccessspa
dc.rights.creativecommonshttps://creativecommons.org/licenses/by/4.0/
dc.rights.localAbierto (Texto Completo)spa
dc.subjectDispatchspa
dc.subjectEncapsulationspa
dc.subjectGhostspa
dc.subject.lembCiencia de la computaciónspa
dc.subject.lembTecnología de la informaciónspa
dc.subject.lembSociedad de la informaciónspa
dc.titleDynamic Dispatch for Method Contracts Through Abstract Predicatesspa
dc.type.coarhttp://purl.org/coar/resource_type/c_3248spa

Archivos

Bloque original

Mostrando 1 - 1 de 1
Cargando...
Miniatura
Nombre:
644831.pdf
Tamaño:
958.22 KB
Formato:
Adobe Portable Document Format
Descripción:
Ver documento

Bloque de licencias

Mostrando 1 - 1 de 1
Cargando...
Miniatura
Nombre:
license.txt
Tamaño:
2.87 KB
Formato:
Item-specific license agreed upon to submission
Descripción: