Diagnosing Java code, Java generics without the pain, Part 1

A guide to generics in the Java Tiger version and the JSR-14 prototype compiler

From the developerWorks archives

Eric Allen

Date archived: December 19, 2016 | Last updated: May 20, 2003|First published: February 11, 2003

This month's Diagnosing Java code introduces generic types and the features to support them scheduled for inclusion in Tiger, Java version 1.5, scheduled for release late in 2003. Eric Allen offers code samples that illustrate the ups and downs around generic types by focusing on such Tiger features as limitations on primitive types, constrained generics, and polymorphic methods. (Upcoming columns will discuss other features such as specific incarnations of generic types in Tiger and potential extensions to generic types beyond Tiger.) Share your thoughts on this article with the author and other readers in the discussion forum by clicking Discuss at the top or bottom of the article.

This article was updated to indicate that autoboxing has been added to the Java 1.5 spec.

This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some steps and illustrations may have changed.



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Java development
ArticleID=10002
ArticleTitle=Diagnosing Java code: Java generics without the pain, Part 1
publish-date=05202003