Universes: Lightweight Ownership for JML

被引:53
作者
Dietl, Werner [1 ]
Muller, Peter [2 ]
机构
[1] ETH, Zurich, Switzerland
[2] ETH, Software Component Technol Grp, Zurich, Switzerland
来源
JOURNAL OF OBJECT TECHNOLOGY | 2005年 / 4卷 / 08期
关键词
D O I
10.5381/jot.2005.4.8.a1
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Object-oriented programs with arbitrary object structures are difficult to understand, to maintain, and to reason about. Ownership has been applied successfully to structure the object store and to restrict how references can be passed and used. We describe how ownership relations can be expressed in the Java Modeling Language, JML. These ownership specifications can be checked by standard verification techniques, runtime assertion checking, ownership type systems, or combinations of these techniques. We show that the combination of the lightweight Universe type system and JML specifications is flexible enough to handle interesting implementations while keeping the annotation and checking overhead small. The Universe type system has been implemented in the JML compiler. This integration enables the application of ownership-based verification techniques to programs specified in JML.
引用
收藏
页码:5 / 32
页数:28
相关论文
共 46 条
[1]  
AGARWAL R, 2004, LECT NOTES COMPUTER, V2937
[2]  
Aldrich J, 2004, LECT NOTES COMPUT SC, V3086, P1
[3]  
ALDRICH J, 2002, OBJECT ORIENTED PROG
[4]   Representation independence, confinement and access control [extended abstract] [J].
Banerjee, A ;
Naumann, DA .
ACM SIGPLAN NOTICES, 2002, 37 (01) :166-177
[5]  
BANERJEE A, 2004, 200414 STEV I TECHN
[6]  
BARNETT M, 2004, J OBJECT TECHNOLOGY, V3
[7]  
BARNETT M, 2004, LECT NOTES COMPUTER
[8]  
Birka A., 2004, OBJECT ORIENTED PROG
[9]  
Bokowski B., 1999, ACM SIGPLAN NOTICE
[10]   Ownership types for object encapsulation [J].
Boyapati, C ;
Liskov, B ;
Shrira, L .
ACM SIGPLAN NOTICES, 2003, 38 (01) :213-223