A model for Java']Java with wildcards

被引:0
|
作者
Cameron, Nicholas [1 ]
Drossopoulou, Sophia [1 ]
Ernst, Erik [2 ]
机构
[1] Imperial Coll London, London SW7 2AZ, England
[2] Univ Aarhus, DK-8000 Aarhus C, Denmark
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Wildcards are a complex and subtle part of the Java type system, present since version 5.0. Although there have been various formalisations and partial type soundness results concerning wildcards, to the best of our knowledge, no system that includes all the key aspects of Java wildcards has been proven type sound. This paper establishes that Java wildcards are type sound. We describe a new formal model based on explicit existential types whose pack and unpack operations are handled implicitly, and prove it type sound. Moreover, we specify a translation from a subset of Java to our formal model, and discuss how several interesting aspects of the Java type system are handled.
引用
收藏
页码:2 / +
页数:4
相关论文
共 50 条
  • [1] On the reification of Java']Java wildcards
    Cimadamore, Maurizio
    Viroli, Mirko
    [J]. SCIENCE OF COMPUTER PROGRAMMING, 2008, 73 (2-3) : 59 - 75
  • [2] Java']Java Type Unification with Wildcards
    Pluemicke, Martin
    [J]. APPLICATIONS OF DECLARATIVE PROGRAMMING AND KNOWLEDGE MANAGEMENT, 2009, 5437 : 223 - 240
  • [3] On Access Restriction with Java']Java Wildcards
    Viroli, Mirko
    Rimassa, Giovanni
    [J]. JOURNAL OF OBJECT TECHNOLOGY, 2005, 4 (10):
  • [4] Taming Wildcards in Java']Java's Type System
    Tate, Ross
    Leung, Alan
    Lerner, Sorin
    [J]. ACM SIGPLAN NOTICES, 2011, 46 (06) : 614 - 627
  • [5] 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
  • [6] Reifying Wildcards in Java']Java Using the EGO Approach
    Cimadamore, Maurizio
    Viroli, Mirko
    [J]. APPLIED COMPUTING 2007, VOL 1 AND 2, 2007, : 1315 - 1322
  • [7] Refactoring Java']Java Generics by Inferring Wildcards, In Practice
    Altidor, John
    Smaragdakis, Yannis
    [J]. ACM SIGPLAN NOTICES, 2014, 49 (10) : 271 - 290
  • [8] Java']Java Wildcards Meet Definition-Site Variance
    Altidor, John
    Reichenbach, Christoph
    Smaragdakis, Yannis
    [J]. ECOOP 2012 - OBJECT-ORIENTED PROGRAMMING, 2012, 7313 : 509 - 534
  • [9] @Java']Java: Bringing a richer annotation model to Java']Java
    Cazzola, Walter
    Vacchi, Edoardo
    [J]. COMPUTER LANGUAGES SYSTEMS & STRUCTURES, 2014, 40 (01) : 2 - 18
  • [10] 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):