arXiv · 1904.01286
Concurrent Typestate-Oriented Programming in Java
Abstract
We describe a generative approach that enables concurrent typestate-oriented programming in Java and other mainstream languages. The approach allows programmers to implement objects exposing a state-sensitive interface using a high-level synchronization abstraction that synchronizes methods with the states of the receiver object in which those methods have an effect. An external tool takes care of generating all the boilerplate code that implements the synchronization logic. Behavioral types are used to specify object protocols. The tool integrates protocol conformance verification with the synchronization logic so that protocol violations are promptly detected at runtime.
Explore related subjects
Keep this discovery
Rosita Gerbo, Luca Padovani. 2019-04-02. Concurrent Typestate-Oriented Programming in Java. https://doi.org/10.4204/eptcs.291.3
Cite the original work for its findings. Save a collection to share your selection of sources.