Copenhagen Programming Language Seminar


Wildcards in the Java Programming Language

Mads Torgersen
Aarhus University, Department of Computer Science

Thursday, December 4th, 15:15-16:00
ITU, Glentevej 67, room 2.03


In the forthcoming release of the Java(TM) Platform (JDK1.5), the Java Programming Language will be extended with generics to allow for type parameterization of classes and methods. Generics greatly improve the type safety and clarity of both application code and libraries, such as the Java Platform Collection Framework. Traditionally, however, generic programming introduces a strong separation between similar classes with different type parameters, a situation which in many cases runs contrary to the aims of object-oriented programming.

Wildcards are a novel, type safe language mechanism included in the generic framework of JDK1.5 to enable a full and seamless integration of generic and object-oriented programming. Using '?' as type argument wildcards, List expresses a type that ranges over all different kinds of lists.

In the talk I will describe and motivate the wildcard mechanism, which was designed and implemented at DAIMI in close collaboration with Sun Microsystems

Scientific host: Kasper Østerbye. Administrative host: Camilla Jensen. All are welcome.
The Copenhagen Programming Language Seminar (COPLAS) is a collaboration between DIKU, ITU and KVL.
To receive information about COPLAS talks by email, send a message to prog-lang-request@mail.it-c.dk with the word 'subscribe' as subject or in the body.

For more information about COPLAS, see http://www.coplas.org