On Access Restriction with Java']Java Wildcards

被引:0
|
作者
Viroli, Mirko [1 ]
Rimassa, Giovanni [2 ]
机构
[1] Alma Mater Studiorum Univ Bologna, DEIS, Bologna, Italy
[2] Whitestein Technol AG, Zurich, Switzerland
来源
JOURNAL OF OBJECT TECHNOLOGY | 2005年 / 4卷 / 10期
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Java wildcards is a new programming mechanism shipped with the Java 5.0 release, introduced to provide a flexible subtyping mechanism for generic types. Safety is retained by providing rather peculiar and non-trivial mechanisms to restrict access to a class functionalities (methods and fields), which are currently not deeply described in the Java Language Specification. In this paper we develop on the theory of variant parametric types from which wildcards originated, and study a framework to describe these access restriction issues in detail, promoting the understanding and fruitful exploitation of this new programming concept. Our work is both technical and conceptual. On the one hand, we provide an abstract characterisation of formal rules to access restriction, then instantiated to the particular implementation of wildcards in current Java. On the other hand, we show that such a characterisation induces a natural description and understanding of access restriction in terms of the ability of (instances of) a generic class to produce/consume elements of the abstracted type.
引用
收藏
页数:23
相关论文
共 50 条
  • [1] Understanding access restriction of variant parametric types and Java wildcards
    Whitestein Technologies AG, Pestalozzistrasse 24, CH-8032 Zurich, Switzerland
    不详
    [J]. ACM SIGAPP, 1600, 1390-1397 (2005):
  • [2] On the reification of Java']Java wildcards
    Cimadamore, Maurizio
    Viroli, Mirko
    [J]. SCIENCE OF COMPUTER PROGRAMMING, 2008, 73 (2-3) : 59 - 75
  • [3] A model for Java']Java with wildcards
    Cameron, Nicholas
    Drossopoulou, Sophia
    Ernst, Erik
    [J]. ECOOP 2008 - OBJECT-ORIENTED PROGRAMMING, PROCEEDINGS, 2008, 5142 : 2 - +
  • [4] Java']Java Type Unification with Wildcards
    Pluemicke, Martin
    [J]. APPLICATIONS OF DECLARATIVE PROGRAMMING AND KNOWLEDGE MANAGEMENT, 2009, 5437 : 223 - 240
  • [5] Taming Wildcards in Java']Java's Type System
    Tate, Ross
    Leung, Alan
    Lerner, Sorin
    [J]. ACM SIGPLAN NOTICES, 2011, 46 (06) : 614 - 627
  • [6] Taming Wildcards in Java']Java's Type System
    Tate, Ross
    Leung, Alan
    Lerner, Sorin
    [J]. PLDI 11: PROCEEDINGS OF THE 2011 ACM CONFERENCE ON PROGRAMMING LANGUAGE DESIGN AND IMPLEMENTATION, 2011, : 614 - 627
  • [7] Reifying Wildcards in Java']Java Using the EGO Approach
    Cimadamore, Maurizio
    Viroli, Mirko
    [J]. APPLIED COMPUTING 2007, VOL 1 AND 2, 2007, : 1315 - 1322
  • [8] Refactoring Java']Java Generics by Inferring Wildcards, In Practice
    Altidor, John
    Smaragdakis, Yannis
    [J]. ACM SIGPLAN NOTICES, 2014, 49 (10) : 271 - 290
  • [9] Java']Java Wildcards Meet Definition-Site Variance
    Altidor, John
    Reichenbach, Christoph
    Smaragdakis, Yannis
    [J]. ECOOP 2012 - OBJECT-ORIENTED PROGRAMMING, 2012, 7313 : 509 - 534
  • [10] Access rights analysis for Java']Java
    Koved, L
    Pistoia, M
    Kershenbaum, A
    [J]. ACM SIGPLAN NOTICES, 2002, 37 (11) : 359 - 372