计算机科学 > 程序设计语言
[提交于 2019年4月3日]
标题:Concurrent Typestate-Oriented Programming in Java
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:EPTCS[v1] 2019年4月3日 星期三 00:00:00 UTC