Wildcard
Wildcard
11
Special issue: OOPS track at SAC 2004, Nicosia/Cyprus
This paper describes wildcards, a new language construct designed to increase the flex-
ibility of object-oriented type systems with parameterized classes. Based on the notion
of use-site variance, wildcards provide type safe abstraction over different instantia-
tions of parameterized classes, by using ‘?’ to denote unspecified type arguments.
Thus they essentially unify the distinct families of classes that parametric polymor-
phism introduces. Wildcards are implemented as part of the addition of generics to
the JavaTM programming language, and is thus deployed world-wide as part of the
reference implementation of the Java compiler javac available from Sun Microsys-
tems, Inc. By providing a richer type system, wildcards allow for an improved type
inference scheme for polymorphic method calls. Moreover, by means of a novel notion
of wildcard capture, polymorphic methods can be used to give symbolic names to
unspecified types, in a manner similar to the “open” construct known from existential
types. Wildcards show up in numerous places in the Java Platform APIs of the newest
release, and some of the examples in this paper are taken from these APIs.
1 INTRODUCTION
Cite this article as follows: Mads Torgersen, Erik Ernst, Christian Plesner Hansen, Peter von
der Ahé, Gilad Bracha, Neal Gafter: ”Adding Wildcards to the Java Programming Language”,
in Journal of Object Technology, vol. 3, no. 11, December 2004, Special issue: OOPS track
at SAC 2004, Nicosia/Cyprus, pp. 97–116, http://www.jot.fm/issues/issue 2004 12/article5
ADDING WILDCARDS TO THE JAVA PROGRAMMING LANGUAGE
clear that the mechanism on its own, imported as it were from a functional context,
lacked some of the flexibility associated with object-oriented subtype polymorphism.
A number of proposals have sought to minimize these problems [9, 10, 2, 5, 6],
and an approach by Thorup and Torgersen [30], which we shall refer to as use-
site variance, seems particularly successful in mediating between the two types of
polymorphism without imposing penalties on other parts of the language. The
approach was later developed, formalized, and proven type sound by Igarashi and
Viroli [18] within the Featherweight GJ calculus [16]. This work addresses typing
issues, but was never implemented full-scale.
Wildcards are the result of a joint project between the University of Aarhus and
Sun Microsystems, Inc., in which we set out to investigate if these theoretical propos-
als could be adapted and matured to fit naturally into the language extended with
parametric polymorphism, and whether an efficient implementation was feasible.
The project has been very successful in both regards. The core language mecha-
nism has been reworked syntactically and semantically into wildcards with a unified
and suggestive syntax. The construct has been fully integrated with other language
features – particularly polymorhic methods – and with the Java platform APIs, lead-
ing to enhanced expressiveness, simpler interfaces, and more flexible typing. The
implementation within the Java compiler is an extension of the existing generics
implementation, enhancing the type checker and erasing parametric information to
produce type-safe non-generic bytecode. Our implementation of wildcards and the
associated modifications are now part of the recent release of the Java 2 Standard
Edition Development Kit version 5.0 (J2SE 5.0).
The development process has raised a wealth of interesting theoretical and im-
plementational issues. The focus of this paper, however, is on what is probably most
important to users of the language: the new language constructs, and the problems
they address. While our experiences are specific to the Java programming language,
wildcards should be equally well suited for other object-oriented languages, such as
C#, having or planning an implementation of parametric polymorphism.
In the following, we will describe wildcards relative to GJ [4], a proposed dialect
of the Java programming language with generics, which was the starting point for
the effort of introducing genericity in the Java platform. We are thus assuming a
language with parametric polymorphism and describing wildcards as an extension of
this language, although there will never in reality be a release of the Java platform
with generics but without wildcards.
The central idea of wildcards is pretty simple. Generics in the Java programming
language allow classes like the Java platform API class List to be parameterized with
different element types, e.g., ListhIntegeri and ListhStringi. In GJ there is no general
way to abstract over such different kinds of lists to exploit their common properties,
although polymorphic methods may play this role in specific situations. A wildcard
is a special type argument ‘?’ ranging over all possible specific type arguments, so
that Listh?i is the type of all lists, regardless of their element type.
Basic Wildcards
Prior to the introduction of generics into the Java programming language, an object
of type List was just a list, not a list of any specific type of object. However, often
all elements inserted into a list would have a common type, and elements extracted
from the list would be viewed under that type by a dynamic cast. To make this usage
type safe, GJ lets classes like List be parameterized with an element type. Objects
inserted must then have that type, and in return extracted objects are known to
have that type, avoiding the unsafe cast. In most cases, this is an improvement over
the old, non-generic scheme, but it makes it harder to treat a list as “just a list”,
independent of the element type. For instance, a method could take a List as an
argument only to clear it or to read properties like the length. In GJ, that could be
expressed using a polymorphic method with a dummy type variable:
The solution is to give a name to the actual element type of the list and then ignore
it in the body of the method. This is not a clean solution—but it works and was
used extensively in GJ’s libraries.
A more serious problem is the case where a class needs a field whose type is
some List, independent of the element type. This is especially a problem in cases
where the generic class provides a lot of functionality independent of the actual
type parameters, as is the case for instance with the generic version of the class
java.lang.Class. This cannot be expressed in GJ.
The solution is to use an unbounded wildcard, ‘?’, in place of the type parameter
when the actual type is irrelevant:
This expresses that the method argument is some type of list whose element type is
irrelevant. Similarly, a field can be declared to be a List of anything:
The type Listh?i is a supertype of ListhT i for any T , which means that any type of
list can be assigned into the list field. Moreover, since we do not know the actual
element type we cannot put objects into the list. However, we are allowed to read
Objects from it—even though we do not know the exact type of the elements, we do
know that they will be Objects.
In general, if the generic class C is declared as
when called on a Ch?i, methods that return T will return the declared bound of T,
namely B, whereas a method that expects an argument of type T can only be called
with null. This mean that we can actually add elements to a Listh?i, but only nulls.
In general, a wildcard should not be considered the name of a type. For instance,
the two occurrences of ‘?’ in Pairh?,?i are not assumed to stand for the same type,
and even for the above list, the ‘?’ in its type may stand for two different types before
and after an assignment, as in list = new ListhStringi(); list = new ListhIntegeri().
Bounded Wildcards
Unbounded wildcards solve a class of problems with generic types, but lack one
capability of polymorphic methods: if the element type of a list is not completely
irrelevant, but required to conform to some bound, this could be expressed in GJ
using a type bound (here Number):
To express that the list element type must be a subtype of Number, we again have
to introduce a dummy type variable. As before, this only works for methods and
not for fields. In order for wildcards to help us out once more, we equip them with
bounds to express the range of possible type arguments “covered” by the wildcard:
This expresses that the method can be called with any list whose element type is a
subtype of Number. Again, we cannot write anything (but null) to the list since the
actual element type is unknown, but we are now allowed to read Numbers from it:
Nested Wildcards
Generic classes can be nested, as in ListhListhStringii, denoting lists of lists of strings.
In this case ListhStringi is a type parameter which is itself generic. Since generic
instantiations with wildcards are just types, they too can be used as type parameters
for other generic classes. Thus, the following code is legal:
ListhListh?ii is simply the type of lists of lists: an object of this type is a list that can
contain all kinds of lists as elements. Hence, both lists of e.g. String and of Integer
can be inserted, as shown. When extracting elements they have type Listh?i, so we
know the retrieved elements are lists, but we do not know their element type.
In the call choose(intSet, stringList), a type has to be found for T that is a supertype
of both SethIntegeri and ListhStringi. In GJ, different parameterizations of the same
class are incomparable and the only such type is Object, even though SethTi and
ListhTi share the superinterface CollectionhTi. GJ is unable to describe a Collection
whose element type is not specified directly, but abstracts over both Integer and
String. With wildcards, this can be expressed as Collectionh?i, and hence a more
specific type than Object can be inferred.
This is an example of a general phenomenon: given two parameterized classes
with different type arguments for the same parameter, it is inherently impossible for
GJ to infer a type that involves that parameter. In this case that means ignoring
that CollectionhTi is a common superinterface for SethTi and ListhTi. This restriction
does not apply when wildcards are available, because ? can be used in any case,
and that leads to a more accurate type inference.
In the choose() example, the type variable T is also used as a return type, so the
improved inference has the beneficial consequence that the caller now knows that a
Collection is returned—enough to, e.g., iterate and call toString() on its elements.
In some cases, the inference may be improved to provide bounds for the inferred
wildcards. Our experiments show, however, that a general approach to obtain the
best possible bounds has some problems. First, there may be both an upper and a
lower “best bound”, so the choice between them would have to be arbitrary. Sec-
ondly, the best upper or lower bound may be an infinite type, with all the problems
that this entails. In our current implementation we take instead a simplistic strat-
egy, allowing bounds in the inference result only if they occur in one of the type
arguments on which the inference is based, and are implied by the other. Thus, for
SethIntegeri and Listh? extends Numberi, we infer Collectionh? extends Numberi.
3 WILDCARD CAPTURE
This method can be called with a SethT i for any type T , and it returns a set with
the same element type. However, it cannot be called with a Seth?i, because the
actual element type is unknown. A read-only view of a set is useful even if the
actual element type is unknown, so this is a problem. However, since the body of
this method does not depend on the exact element type, it could instead be defined
as follows:
This would allow the method to accept any set, but in return discards the informa-
tion that the returned set has the same element type as the given set:
In this case we get an error because the result of calling unmodifiableSet with a
SethIntegeri is a Seth?i. And so, we are left with a choice: should the method take a
SethTi to give an accurate return type or a Seth?i to allow the method to be called
with sets whose exact element type is unknown?
Our solution is linguistic: we observe that it is actually safe to allow the method
taking a SethTi to be called with a Seth?i. We may not know the actual element
type of the Seth?i, but we know that at the instant when the method is called, the
given set will have some specific element type, and any such element type would
make the invocation typesafe. We therefore allow the call.
This mechanism of allowing a type variable to be instantiated to a wildcard
in some situations is known as wildcard capture, because the actual run-time type
behind the ? is “captured” as T in the method invocation.1
1
The word “capture” is sometimes used to refer to the syntactic situation when free variables
in an expression are brought into scope of a declaration of the same name. We do not believe that
these two uses will clash, since they occur in largely separate domains.
Thus, the API needs to contain only the polymorphic version of unmodifiableSet()
since, with capture, it implies the typing also of the wildcard version. More generally,
in the Java Platform API’s we avoid providing a large number of duplicate methods
having identical bodies, but different signatures.
Proper Abstraction
Wildcard capture also addresses a related problem. Consider the method Collec-
tions.shuffle(), which takes a list and shuffles its elements. One possible signature is
as follows:
The type argument is needed because the method body needs a name for the element
type of the list, to remove and re-insert elements. However, the caller of such a
method should only have to worry about the types of objects the method can be
called with; in this case any List. Seen from the caller’s perspective the signature of
shuffle() should therefore be the more concise:
Wildcard capture allows us to mediate between these two needs, because it makes
it possible for the wildcard version of the method (which should be public) to call
the polymorphic version (which should be private and have a different name).
In general, private methods can be employed in this way to “open up” the type
arguments of types with wildcards, thus avoiding that implementation details such
as the need for explicit type arguments influence the public signatures of a class or
interface declaration.
∃X.SethXi set;
set = open set as s [Y] in
pack [Z=Y in SethZi] Collections.hYiunmodifiableSet(s);
Using this syntax it is clear that unmodifiableSet() is in fact called with a fixed type
argument Y, because s has the type SethYi. Wildcard capture may therefore be seen
as an implicit wrapping of polymorphic method calls with such open statements,
when appropriate. However, there is more to it than that. In an open expression
as above, it is disallowed for the witness type to “escape” its defining scope by
occuring in the result type of the expression. Thus, in order to adequately express
the capture semantics in terms of existentials, we must explicitly “repack” the result
value of the expression to hide the witness type. This produces a value of the type
∃Z.SethZi, which can freely escape the scope of the open operation to be assigned to
the variable set. Thus, the net effect is that the original existential of the expression
set “bubbles up” through its enclosing expressions to appear on the type of the
outermost one.
The connection between existential types and wildcards is here explained in an
informal manner. Work is ongoing to express formally the the typing and semantics
of wildcards in the context of a calculus (an extension of Featherweight GJ [16])
with an existentially based type system.
Even if a best choice exists, it may not be precise, and potentially causes the loss of
important type information. Consider a class C and a variable c:
What is the type of the method call c.m() ? Under the approach of Igarashi and
Viroli, the answer would be Pairh?,?i, loosing knowledge of the fact that the two
element types of the pair are identical. However, with our “open-and-repack” exis-
tential interpretation above we can do better, expressing the type as ∃Y.PairhY,Yi,
which retains all the information that we have. This precision can be exploited in a
surrounding method call by using capture. For instance, the following method n()
can be called as n(c.m()), which in turn would have the result type ∃Y.ListhYi:
Thus, the “bubbling up” removes the problems of the type approximation in use-site
variance and the imprecision that it introduces.
It does however mean that expressions can have types (such as ∃Y.PairhY,Yi)
which cannot be expressed in surface syntax. From a puristic point of view this
should be avoided in the design of programming languages.
We have chosen a more pragmatic approach. The full syntax of existential types
is simply to involved to introduce in a mainstream programming language such as
Java. Wildcards are a much more lightweight construct which can be understood in
its own right, also by the vast majority of programmers not familiar with the theory
of existential types. One should note the syntactic and conceptual difference between
the actual Java syntax of a simple method call and the heavyweight explicit open-
repack outlined above. On the other hand, we see no reason to artifically restrict the
class of programs accepted by the type checker by omitting capture, just because of
a principle forbidding its internal type representation to be richer that the surface
layer. This goes especially when there are so many good examples of the usefulness
of capture.
Also, the internal type system of Java is already enriched for other purposes, for
instance with a form of intersection types. So in that sense the battle is already
lost. Finally, as the next section shows, even with capture the compiler does not in
fact need to fully represent existential types.
The effect is that capture(T ) is the same as the type T except that convert has been
applied on every top-level wildcard type argument. The actual implementation of
capture is somewhat more complex, but the above pseudo-code presents the core
which is relevant in connection with the type capture operation. Next, convert
works as follows (also slightly simplified compared to the actual implementation):
The method convert receives a WildcardType and uses it (including the knowledge
about its corresponding formal type parameter) to equip the given TypeVariable with
a lower bound and an upper bound. The semantics of this is that such a TypeVariable
X stands for some (unknown but fixed) type which is a subtype of the upper bound
and a supertype of the lower bound. The wildcard is used as one of the arguments
in a type application (an expression where a type parameterized class or interface
S receives actual type arguments), and by looking up the declaration of S we can
find the formal type parameter and its bound. This has been done already, and
the bound of the formal is available as wc.getFormal().getBound() above. Moreover,
the wildcard may have its own bound (such as T if the wildcard is on the form
‘? extends T ’). Consequently, the method convert finds the tightest possible upper
and lower bounds for the new type variable by using the declared upper bound on
the formal type argument and the upper bound on the wildcard itself (if present),
respectively the lower bound on the wildcard (if present). Note that the formal type
argument cannot have a declared lower bound.
This capture conversion process—transforming top-level wildcard type argu-
ments into fresh type variables with suitable bounds—is applied whenever the type
of an expression is computed, specifically with the following 7 kinds of expressions:
conditional expressions (b? x:y), method invocations, assignment expressions, type
cast expressions, indexed expressions (myArray[index]), select expressions (myOb-
ject.field), and identifier expressions (myName). Finally, capture conversion is also
applied to the left-hand side of subtype relations:
This is required in order to ensure that wildcards in covariant result types are
captured correctly in connection with method overriding.
5 RELATED WORK
Virtual types are the ultimate origins of wildcards, and the historical and semantic
relations are described below. We then look at variance annotations both at the
declaration site and the use site of parametric classes, the latter approach being the
starting point for the design of the wildcard mechanism. Finally, outline the origins
of existential types and some connections to our work.
Virtual types
Wildcards ultimately trace their origins back to the language BETA [20]. Virtual
classes in BETA support genericity, thereby providing an alternative to parame-
terized classes. Virtual classes are members of classes that can be redefined in
subclasses, similarly to (virtual) methods. In their original form in BETA, virtual
classes were a happy by-product of BETA’s unification of methods and classes into
patterns, and so the mechanism in BETA is actually known as virtual patterns. Tho-
rup introduced the term virtual type in his proposal for adding these to the Java
programming language [29]. This terminology was followed by subsequent incarna-
tions of the construct [31, 6, 17], which all re-separate virtual types from virtual
methods.
Using Thorup’s syntax, a generic List class may be declared as follows:
T is a type attribute, which may be further specified in subclasses. These can either
further bound the virtual type by constraining the choice of types for T, or they can
final bind it by specifying a particular type for T:
Also, the abstract List classes—those with non-final virtual types—restrain the use
of their methods, so that an attempt to add e.g. an Integer to a NumberList will
be rejected in essentially the same manner as an add() call to a Listh? extends
Numberi.2
Thus, virtual types in BETA is the first mechanism that lets different param-
eterizations of a generic class share an instance of that generic class as a common
supertype in a statically safe manner. However, since subtypes are always subclasses,
achieving hierarchies like the above requires planning: if IntegerList had been a di-
rect subclass of List, it could not also be a subtype of NumberList. Furthermore,
the use of single inheritance prohibits multiple supertypes, whereas wildcards allow,
e.g., ListhIntegeri to be a subtype of both CollectionhIntegeri and Listh?i.
The gbeta language [13], which generalizes BETA in several ways, reduces the
latter problem by having structural subtyping at the level of mixins, but the inher-
itance hierarchy must still be carefully planned and centrally managed. However,
inspired by various variance mechanisms including [30] the notion of constrained
virtuals has recently been added to gbeta, thus providing a structural mechanism
integrated with virtual patterns.
Thorup and Torgersen [30] compare the two genericity mechanisms, parameter-
ized classes and virtual types, seeking to enhance each with the desirable features
of the other. Virtual types are thus extended with the structural subtyping char-
acteristic of parameterized classes (relating ListhNumberi to CollectionhNumberi) to
overcome the restrictions of BETA above. This approach has later been used in the
Rune project [32] and the νobj calculus underlying the Scala language [26].
Declaration-site variance
A different approach to obtain subtyping relationships among different instantia-
tions of parameterized classes is to use variance annotations. First proposed by
Pierre America [2], and later used in the Strongtalk type system [3], declaration-
site variance allows the declaration of type variables in a parameterized class to be
designated as either co- or contravariant. For instance, a read-only (functional) List
class may be declared as:
2
Actually in BETA, assignments that may possibly succeed are not rejected by the compiler:
instead a warning is issued and a runtime cast is automatically inserted. This policy has lead many
to the false conclusion that BETA and virtual types are not statically safe; see, e.g., [6, 31].
class Listhcovar Ti {
T head() { ... }
ListhTi tail() { ... }
}
This will have the effect that, e.g., ListhIntegeri is a subtype of ListhNumberi, but
prevents the List class from having methods using T as the type of an argument. In
a symmetric fashion, write-only structures, such as output streams, can be declared
contravariant in their type arguments.
In practical object-oriented programming, this approach has severe limitations.
Usually, data structures such as collections have both read and write operations
using the element type, and in that situation, declaration-site variance cannot be
applied.
Note that “write operation” is to be taken in the broad sense of “operations
taking arguments of the element type”. Thus, due to the covariance annotation the
above functional List class cannot even contain a cons() method of the following
form:
even though this does not modify the list. Thus, in reality, declaration-site variance
enforces a functional or procedural style of programming, where a lot of functionality
has to be placed outside of the classes involved.
Use-site Variance
Thorup and Torgersen introduce the concept of use-site covariance for parameter-
ized classes [30]. This is a new way of providing covariant arguments to parame-
terized classes, inspired by BETA. A prefix ‘+’ is used, and Listh+Numberi denotes
a common supertype of all ListhT i, where T is a subtype of Number. In exchange
for the covariance, writing to a Listh+Numberi is prohibited. Hence, ‘+Number’ is
essentially equivalent to the wildcard ‘? extends Number’.
In [18], Igarashi and Viroli propose a significant extension, adding a contravariant
form of use-site variance Listh-Numberi, roughly equivalent to Listh? super Numberi.
Also, a so-called “bivariant” form Listh*Numberi is added, which, like an unbounded
wildcard Listh?i ranges over all kinds of lists. In the bivariant case, the Number part
of the type argument is ignored and is there only for syntactic symmetry. The
authors themselves propose the shorthand Listh*i. Igarashi and Viroli provide a
formalization in context of Featherweight GJ [16], which has been proven sound.
Their work was our starting point for the design of wildcards, and the differences
between this approach and the approaches we know from languages like BETA has
been a source of fruitful discussions. A formalization that covers all the features is
ongoing work.
Existential Types
We have mentioned the connection between wildcards and existential types sev-
eral times. Essentially, we consider wildcards as a language construct in its own
right which provides a subset of the expressive power of full existential types, but
with a more concise syntax and with some restrictions on the complexity of type
expressions. In particular, it is not possible to choose freely where to put the existen-
tial quantifiers in the existential type that corresponds to a type expression using
wildcards—for each ‘?’ the corresponding quantifier will be on the immediately
enclosing parameterized class. This ensures compositionality (a ListhListh?ii will
actually contain elements of type Listh?i), but of course it is impossible to express
some types directly.
Existential types were introduced by Mitchell and Plotkin in [23], motivated by
the desire to provide types for the values defined by Ada generic packages, CLU
clusters and other abstract data type declarations, thus making these values first-
class and allowing them to be passed as parameters etc. Infinite sums in category
theory are used to illustrate the semantics of expressions having existential types,
with the intuition that they represent an infinitary version of finite sums such as
variant types.
Soon after, Cardelli and Wegner describe existential types with bounds in [7],
expanding the focus on the interplay between parametric and subtype polymor-
phism. ML modules, in particular when constraining a structure with a signature,
are mentioned as an example of using existential and dependent types, a line of work
which has later been expanded significantly, e.g., by Russo in [27] where modules
are first-class entities. The language Scala has been extended with dependent types,
based on abstract type members as described and formalized in [26], and with some
inspiration from the BETA related languages. Wildcards do not support dependent
types, even though we often discussed how to extend them to do it.
The connection between genericity in the Java language and existential types
have emerged before. In [15], the so-called raw types of GJ are described as being
close to existential types, but then formalized by giving the bottom type for un-
known type arguments. That paper also mentions that Pizza uses existential types
internally, in special casts which are similar to raw types in GJ. As mentioned be-
fore, Igarashi and Viroli [18] refer to existential types to establish an intuition about
use-site variance. The difference to wildcards is that by capture they allow for using
a method body in a similar way as the body of an open expression, whereas the
calculus in [18] performs the equivalent of an open and a pack operation in one
step, prohibiting usages of the witness type.
6 CONCLUSIONS
In this project, the Java programming language has been extended with wildcards,
thus bringing ideas about virtual types and use-site variance to the mainstream.
In this design and implementation process, several lessons were learned and new
ideas produced. First, the notion of wildcards was designed and implemented; sec-
ond, type inference for invocation of polymorphic methods was enhanced to handle
wildcards; and third, the notion of wildcard capture was introduced, exploiting the
existential nature of the ‘?’ in many usages of wildcards. In conclusion, the ex-
pressive power of wildcards is a non-trivial enhancement to the language, essentially
because wildcards provide much of the power of existential types without the com-
plexity.
ACKNOWLEDGMENTS
Numerous people have contributed to the design of wildcards, not least from the
participation in many lively discussions. We wish here to thank especially Martin
Odersky, Atsushi Igarashi, Mirko Viroli, Lars Bak, Josh Bloch, Bob Deen, and
Graham Hamilton who all had a significant influence on the resulting design.
REFERENCES
[9] W. Cook. A proposal for making Eiffel type-safe. In Proceedings ECOOP 1989.
Stephen Cook, editor.
[13] E. Ernst. gbeta – a Language with Virtual Attributes, Block Structure, and
Propagating, Dynamic Inheritance. PhD thesis, Department of Computer Sci-
ence, University of Aarhus, 1999.
[14] J. Gosling, B. Joy, G. Steele, and G. Bracha. The Java Language Specification,
Third Edition. Addison-Wesley, 2004. To appear.
[15] A. Igarashi, B. Pierce, and P. Wadler. A Recipe for Raw Types. In Informal
Proceedings FOOL, 2001.
[19] A. Kennedy and D. Syme. Design and implementation of generics for the .NET
common language runtime. In Proceedings PLDI 2001, pages 1–12. C. Norris
and J. J. B. Fenwick, editors.
[23] J. C. Mitchell and G. D. Plotkin. Abstract types have existential type. Pro-
ceedings POPL 1985, pages 37–51. Revised version in ACM Transactions on
Programming Languages and Systems, 10.3, 1988, pages 470–502.
[24] A. Myers, J. Bank, and B. Liskov. Parameterized types for Java. In Proceedings
POPL 1997. Neil D. Jones, editor.
[25] M. Odersky and P. Wadler. Pizza into Java: Translating theory into practice.
In Proceedings POPL 1997, pages 146–159. Neil D. Jones, editor.
[27] C. V. Russo. First-class structures for standard ML. LNCS 1782, pages 336++,
Springer Verlag 2000.
[31] M. Torgersen. Virtual types are statically safe. In Informal Proceedings FOOL,
1998. K. Bruce, editor,
Peter von der Ahé, M.Sc. was until recently at the University of Aarhus, Den-
mark. He now maintains javac at Sun Microsystems. Peter’s home page is at
http://www.ahe.dk/peter/.
Neal Gafter, Ph.D. works at Google Inc. He maintained javac at Sun Microsys-
tems, Inc., until recently. His home page is at http://www.gafter.com/~neal/.
Christian Plesner Hansen, M.Sc. just graduated from the University of Aarhus,
Denmark, and is now employed at OOVM a/s, Aarhus, Denmark. His home page
is at http://www.daimi.au.dk/~plesner/.
Moreover, the authors constitute the team which specified and implemented wild-
cards in the Java programming language.