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 条
  • [31] A nominal theory of objects with dependent types
    Odersky, M
    Cremet, V
    Röckl, C
    Zenger, M
    ECOOP 2003 - OBJECT-ORIENTED PROGRAMMING, PROCEEDINGS, 2003, 2743 : 201 - 224
  • [32] FALSE OBJECTS, DUPLICATES, REPLICAS AND TYPES
    PERREAULT, J
    ARTFORUM, 1978, 16 (06): : 24 - 27
  • [33] C++ OBJECTS THAT CHANGE THEIR TYPES
    DAVIS, SR
    JOURNAL OF OBJECT-ORIENTED PROGRAMMING, 1992, 5 (04): : 27 - 32
  • [34] Strong types for coordinating active objects
    Puntigam, F
    CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2001, 13 (04): : 293 - 326
  • [35] Searches for rare and new types of objects
    Djorgovski, SG
    Mahabal, AA
    Brunner, RJ
    Gal, RR
    Castro, S
    de Carvalho, RR
    Odewahn, SC
    VIRTUAL OBSERVATORIES OF THE FUTURE, PROCEEDINGS, 2001, 225 : 52 - 63
  • [36] Passive objects in confined active fluids: A localization transition
    Ben Dor, Ydan
    Kafri, Yariv
    Kardar, Mehran
    Tailleur, Julien
    PHYSICAL REVIEW E, 2022, 106 (04)
  • [37] SPECTRAL TYPES FOR OBJECTS IN THE KISO SURVEY .9. DATA FOR 121 OBJECTS
    DARLING, GW
    WEGNER, G
    ASTRONOMICAL JOURNAL, 1994, 108 (06): : 2025 - 2030
  • [38] Spectral types for objects in the Kiso survey .10. Data for 156 objects
    Darling, GW
    Wegner, G
    ASTRONOMICAL JOURNAL, 1996, 111 (02): : 865 - 868
  • [39] Types for active objects with static deadlock prevention
    Puntigam, F
    Peter, C
    FUNDAMENTA INFORMATICAE, 2001, 48 (04) : 315 - 341
  • [40] Detection of three types of changes to novel objects
    Keane, SK
    Hayward, WG
    Burke, D
    VISUAL COGNITION, 2003, 10 (01) : 101 - 127