Java']Java Type Unification with Wildcards

被引:0
|
作者
Pluemicke, Martin [1 ]
机构
[1] Univ Cooperat Educ Stuttgart Horb, D-72160 Horb, Germany
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
With the introduction of Java 5.0 the type system has been extended by parameterized types, type variables, type terms, and wildcards. As a result very complex types can arise. The term Vector <? extends Vector < AbstractList < Integer >>> is for example a correct type in Java 5.0. In this paper we present a type unification algorithm for Java 5.0 type terms. The algorithm unifies type terms, which are in subtype relationship. For this we define Java 5.0 type terms and its subtyping relation, formally. As Java 5.0 allows wildcards as instances of generic types, the subtyping ordering contains infinite chains. We show that the type unification is still finitary. We give a type unification algorithm, which calculates the finite set of general unifiers.
引用
收藏
页码:223 / 240
页数:18
相关论文
共 50 条
  • [1] Taming Wildcards in Java']Java's Type System
    Tate, Ross
    Leung, Alan
    Lerner, Sorin
    [J]. ACM SIGPLAN NOTICES, 2011, 46 (06) : 614 - 627
  • [2] 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
  • [3] On the reification of Java']Java wildcards
    Cimadamore, Maurizio
    Viroli, Mirko
    [J]. SCIENCE OF COMPUTER PROGRAMMING, 2008, 73 (2-3) : 59 - 75
  • [4] A model for Java']Java with wildcards
    Cameron, Nicholas
    Drossopoulou, Sophia
    Ernst, Erik
    [J]. ECOOP 2008 - OBJECT-ORIENTED PROGRAMMING, PROCEEDINGS, 2008, 5142 : 2 - +
  • [5] On Access Restriction with Java']Java Wildcards
    Viroli, Mirko
    Rimassa, Giovanni
    [J]. JOURNAL OF OBJECT TECHNOLOGY, 2005, 4 (10):
  • [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] 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):
  • [10] Java']Java is type safe - Probably
    Drossopoulou, S
    Eisenbach, S
    [J]. ECOOP'97: OBJECT-ORIENTED PROGRAMMING, 1997, 1241 : 389 - 418