Abstract
dc:description.abstractThere is an increasing need for reliable software. Nowadays, almost every application area needs complex software: train control systems, mobile phones, power plants, and a number more. Many of these applications have to meet strict safety requirements to avoid unexpected behavior. <br>Programmers take these requirements into account during the design phase of projects and translate them into invariants and protocols that the software needs to implement. <br>Still, most main-stream programming languages supply only little possibilities to express or statically enforce these constraints. Therefore, programmers have to rely on detailed documentation to state the intended use of code libraries. This also results in the need for excessive, but still incomplete, testing to avoid failure. <br>This thesis presents the static type-based program analysis framework Java(X) that is capable of enforcing user-defined protocols. The framework Java(X) extends the type language of Java with annotations drawn from a user-defined annotation set X. Each instance of X yields a different refinement type system with guaranteed soundness. <br>The thesis introduces the framework with some motivating examples, formalizes the core language of Java(X), provides a generic soundness proof, and presents a modular type checking algorithm that also infers the optimal capability distribution. <br>The main novelty of Java(X) is its concept of activity annotations coupled with a notation for droppability. The activity annotations provide a capability tracking that can grant exclusive write access to a resource and therefore allows the system to exactly track typestate changes. The notion of droppability enables the system to prevent resources from being dropped without previously cleaning them up. <br>Java(X) handles aliases with a novel splitting relation. To ease the use of the system, the type checker automatically infers the splitting to enable typing whenever possible without further user interaction. Therefore, the user only needs to provide the annotation set and intended protocol. In return, the generic type soundness guarantees that the stated constraints are not violated.
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Degen, Markus
- Advisor dc:contributor.advisor
-
- Thiemann, Peter
- Person Identifier Gnd person:identifier.gnd
-
- 1081749261
- 141000813
- ORCID person:identifier.orcid
Subjects
dc:subject × 8Rights
dc:rights.accessrights- Statement dc:rights.accessrights
-
- free
- Language dc:language.dcterms_iso639_2
- eng
Identifiers
dc:identifier.*- Person Affiliation Identifier
- 1300564-9