The Source for Java Technology Collaboration
User: Password:



John D. Mitchell's Blog

Generics Tutorial

Posted by johnm on February 17, 2004 at 08:37 PM | Comments (3)

Sun has released Gilad Bracha's Generics Tutorial.


Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • please support -target 1.4
    As I understand it, Generics "happens" at compile-time and the resulting byte code is no different than 1.4. Generics ultimately just winds up placing the cast operation in the byte-code for you.

    If this is true, I should be able to compile my Generics code and specify a -1.4 target.

    Consider this a plea from someone who has a large existing userbase using Java 1.4 who may not upgrade to 1.5 for many years. I want to play with Generics now :-)

    Posted by: markswanson on February 18, 2004 at 07:03 AM

  • please support -target 1.4
    I second this, I'd like to use Gernerics in J2ME apps. :)

    Posted by: mrmlk on February 18, 2004 at 07:18 PM

  • hmmm....
    So now we have to work with method signatures like this:

    public static > T max(Collection coll)

    instead of method signatures like this:

    public static Object max(Collection coll)

    ... are we sure we want this?!?

    Posted by: niekvs on February 20, 2004 at 03:23 PM





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds