We extend a Java-like language with immutability specifications and a static type system for verifying immutability. A class modifier immutable specifies that all class instances are immutable objects. Ownership types specify the depth of object states and enforce encapsulation of representation objects. The type system guarantees that the state of immutable objects does not visibly mutate during a program run. Provided immutability-annotated classes and methods are final, this is true even if immutable classes are composed with untrusted classes that follow Java's type system, but not our immutability type system. © Springer-Verlag Berlin Heidelberg 2007.
CITATION STYLE
Haack, C., Poll, E., Schäfer, J., & Schubert, A. (2007). Immutable objects for a Java-like language. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 4421 LNCS, pp. 347–362). Springer Verlag. https://doi.org/10.1007/978-3-540-71316-6_24
Mendeley helps you to discover research relevant for your work.