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 条
  • [41] Turing Degrees of Isomorphism Types of Geometric Objects
    Calvert, Wesley
    Harizanov, Valentina
    Shlapentokh, Alexandra
    COMPUTABILITY-THE JOURNAL OF THE ASSOCIATION CIE, 2014, 3 (02): : 105 - 134
  • [42] Turing degrees of isomorphism types of algebraic objects
    Calvert, Wesley
    Harizanov, Valentina
    Shlapentokh, Alexandra
    JOURNAL OF THE LONDON MATHEMATICAL SOCIETY-SECOND SERIES, 2007, 75 : 273 - 286
  • [43] SPECTRAL TYPES FOR 26 OBJECTS IN THE KISO SURVEY
    WEGNER, G
    MCMAHAN, RK
    ASTRONOMICAL JOURNAL, 1985, 90 (08): : 1511 - 1513
  • [44] EXTENSIONS TO STARBURST - OBJECTS, TYPES, FUNCTIONS, AND RULES
    LOHMAN, GM
    LINDSAY, B
    PIRAHESH, H
    SCHIEFER, KB
    COMMUNICATIONS OF THE ACM, 1991, 34 (10) : 94 - 109
  • [45] THE CITY AS A PROJECT TYPES, TYPICAL OBJECTS AND TYPOLOGIES
    Lathouri, Marina
    ARCHITECTURAL DESIGN, 2011, (209) : 24 - 31
  • [47] Using roles with types and objects for service development
    Bræk, R
    INTELLIGENCE IN NETWORKS, 2000, 30 : 265 - 278
  • [48] PRINCIPLES OF PROGRAMMING WITH COMPLEX OBJECTS AND COLLECTION TYPES
    BUNEMAN, P
    NAQVI, S
    TANNEN, V
    WONG, LS
    THEORETICAL COMPUTER SCIENCE, 1995, 149 (01) : 3 - 48
  • [49] Coordination requirements expressed in types for active objects
    Puntigam, F
    ECOOP'97: OBJECT-ORIENTED PROGRAMMING, 1997, 1241 : 367 - 388
  • [50] OBJECT TYPES AS OBJECTS - AND VICE-VERSA
    ODELL, JJ
    JOURNAL OF OBJECT-ORIENTED PROGRAMMING, 1992, 4 (09): : 45 - 48