Immutable objects for a Java-like language

27Citations
Citations of this article
12Readers
Mendeley users who have this article in their library.

This article is free to access.

Abstract

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.

Cite

CITATION STYLE

APA

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

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free