POPL 2027
Sun 10 - Sat 16 January 2027 Mexico City, Mexico

The Java Typestate Checker (JaTyC) leverages typestates, a formal model for managing sequences of operations in stateful systems, to verify that class instances comply with their annotated usage protocols. Java programs accepted by JaTyC are memory-safe (no null-pointer exceptions or memory leaks) and protocol-safe (all methods of each class instance are always called in the order prescribed in its typestate). This tutorial will present typestates for object-oriented programming (OOP) and the JaTyC tool and, building on a VerifyThis Challenge, show how to write realistic stateful (sequential) Java code and automatically ensure its safety with minimal specification effort, and how to deal with subtyping and inheritance using an example from the automotive industry.