@inproceedings{deline2004typestates, author = {DeLIne, Robert and Fahndrich, Manuel}, title = {Typestates for objects}, series = {Lecture Notes in Computer Science}, booktitle = {ECOOP 2004 - Object-Oriented Programming}, year = {2004}, month = {June}, abstract = {Today's mainstream object-oriented compilers and tools do not support declaring and statically checking simple pre- and postconditions on methods and invariants on object representations. The main technical problem preventing static verification is reasoning about the sharing relationships among objects as well as where object invariants should hold. We have developed a programming model of typestates for objects with a sound modular checking algorithm. The programming model handles typical aspects of object-oriented programs such as downcasting, virtual dispatch, direct calls, and subclassing. The model also permits subclasses to extend the interpretation of typestates and to introduce additional typestates. We handle aliasing by adapting our previous work on practical linear types developed in the context of the Vault system. We have implemented these ideas in a tool called Fugue for specifying and checking typestates on Microsoft .NET-based programs.}, publisher = {Springer Verlag}, url = {http://approjects.co.za/?big=en-us/research/publication/typestates-for-objects/}, pages = {465-490}, volume = {3086}, isbn = {978-3-540-24851-4}, edition = {ECOOP 2004 – Object-Oriented Programming}, }