Encapsulating objects with confined types

20Citations
Citations of this article
10Readers
Mendeley users who have this article in their library.

Abstract

Object-oriented languages provide little support for encapsulating objects. Reference semantics allows objects to escape their defining scope, and the pervasive aliasing that ensues remains a major source of software defects. This paper presents Kacheck/J, a tool for inferring object encapsulation properties of large Java programs. Our goal is to develop practical tools to assist software engineers, thus we focus on simple and scalable techniques. Kacheck/J is able to infer confinement - -the property that all instances of a given type are encapsulated in their defining package. This simple property can be used to identify accidental leaks of sensitive objects, as well as for compiler optimizations. We report on the analysis of a large body of code and discuss language support and refactoring for confinement. © 2007 ACM.

Cite

CITATION STYLE

APA

Grothoff, C., Palsberg, J., & Vitek, J. (2007). Encapsulating objects with confined types. ACM Transactions on Programming Languages and Systems, 29(6). https://doi.org/10.1145/1286821.1286823

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