Encapsulating objects with confined types

被引:9
|
作者
Grothoff, C [1 ]
Palsberg, J [1 ]
Vitek, J [1 ]
机构
[1] Purdue Univ, Dept Comp Sci, S3 Lab, W Lafayette, IN 47907 USA
关键词
D O I
10.1145/504311.504300
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Object-oriented languages provide little support for encapsulating objects. Reference semantics allows objects to escape their defining scope, The pervasive aliasing that ensues remains a major source of software defects. This paper introduces Kacheck/J a tool for inferring object encapsulation properties in 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 for Java classes. A class and its subclasses are confined if all of their instances are encapsulated in their defining package. This simple property can be used to identify accidental leaks of sensitive objects. The analysis is scalable and efficient; Kacheck/J is able to infer confinement on a corpus of 46,000 classes (115 MB) in 6 minutes.
引用
收藏
页码:241 / 253
页数:13
相关论文
共 50 条
  • [1] Encapsulating objects with confined types
    Grothoff, Christian
    Palsberg, Jens
    Vitek, Jan
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2007, 29 (06):
  • [2] Encapsulating mobile objects
    Hartig, H
    Reuther, L
    PROCEEDINGS OF THE 17TH INTERNATIONAL CONFERENCE ON DISTRIBUTED COMPUTING SYSTEMS, 1997, : 355 - 362
  • [3] Confinement framework for encapsulating objects
    Qin Shu
    Zongyan Qiu
    Shuling Wang
    Frontiers of Computer Science, 2013, 7 : 236 - 256
  • [4] Confinement framework for encapsulating objects
    Shu, Qin
    Qiu, Zongyan
    Wang, Shuling
    FRONTIERS OF COMPUTER SCIENCE, 2013, 7 (02) : 236 - 256
  • [5] Encapsulating distribution of remote objects
    Jansen, M
    Klaver, E
    Verkaik, P
    van Steen, M
    Tanenbaum, AS
    INFORMATION AND SOFTWARE TECHNOLOGY, 2001, 43 (06) : 353 - 363
  • [6] Confined types
    Bokowski, B
    Vitek, J
    ACM SIGPLAN NOTICES, 1999, 34 (10) : 82 - 96
  • [7] Preparation of Oxidized Starch Hydrogel Encapsulating β-Carotene by Confined Crystallization
    Bai, Jie
    Qu, Yinzi
    Wang, Shanshan
    Hua, Shan
    Zhu, Yuting
    Li, Yuan
    Shipin Kexue/Food Science, 2020, 41 (08): : 1 - 7
  • [8] Types of Virtual Objects
    Levin, Georgy D.
    VOPROSY FILOSOFII, 2023, (08) : 93 - 104
  • [9] Objects and session types
    Dezani-Ciancaglini, Mariangiola
    Drossopoulou, Sophia
    Mostrous, Dimitris
    Yoshida, Nobuko
    INFORMATION AND COMPUTATION, 2009, 207 (05) : 595 - 641
  • [10] NEW TYPES OF OBJECTS
    ZWICKY, F
    ASTRONOMICAL JOURNAL, 1963, 68 (05): : 301 - &