Slashdot Mirror


Java 5 RC Available, Gold Targeted for this Month

Trevor Leach writes "Sun's Java 5 download page is now serving up J2SE 5.0 RC. There are loads of productivity enhancements in this release, code named 'Tiger,' including generics, enums, autoboxing of primitive types, and metadata. Additionally, the Java Developer's Journal qoutes Sun's Graham Hamilton, chief technologist of Java Software, as specifying September 30 as Tiger's target release date."

1 of 65 comments (clear)

  1. Re:autoboxing ? by BigBadDude · · Score: 5, Insightful


    ok, wait.

    how much time do you save for writting

    int i = e.next();

    instead of

    Integer ii = (Integer)e.next();
    int i = ii.intValue();

    probably few mintues per working day. I am not sure if this makes you code more clear because most of the time when you put something in a List/Array/whatever, you want to change its value and you cant do that with an automatically boxed type:

    e.next() ++;

    will simple not do what you intended so you will have to go back to casting Integers again. now THIS mixed use of two different methods will make you coding unreadable.