The current way of implementing generic utility classes, such as Vector and Hashtable, requires many unsightly casts, which may cause run-time errors. Parametric types provide an elegant way to implement generic utility classes that alleviates the need to cast and allows more errors to be caught at compile time. Generic Java is a proposal to add parametric types to the Java language that supports legacy code and pre-existing Java virtual machines.
Another take on adding genericity to Java (a subject raised here quite often). Talks about GJ (the successor of Pizza).
There was a disccion of this paper on JavaLobby.
(JSR #000014 - Add Generic Types to the JavaTM Programming Language, and the votes.)
Posted to Software-Eng by Ehud Lamm on 4/4/01; 12:41:52 PM
|