Slashdot Mirror


Preview of Java 1.5

gafter writes "An early access prototype implementation of the proposed new J2SE 1.5 language features is available. The prototype includes generics (JSR 14), typesafe enums, varargs, autoboxing, foreach loops, and static import (JSR 201). In other words, all the new language features planned for 1.5 except metadata (JSR 175). The prototype includes full sources for the compiler, written in the extended language. You can download the prototype from java.sun.com. It requires J2SE 1.4.1 and provides some examples of how to use the new language constructs. The prototype includes an experimental type system (variant type parameters) for Generic Java that is being considered for Tiger (1.5) based on a paper by Igarashi and Viroli at ECOOP 2002 . Comments and votes for the new type system are being gathered at bugParade."

3 of 461 comments (clear)

  1. Sounds Promising by mcbridematt · · Score: 0, Redundant

    Ohh.. this sounds very promising. The fact that I don't have to do this:
    JPanel jp = new JPanel();
    JComponent jc = ((JComponent)jp);

    or Node xmlNode = (Node)xmlElement;
    sounds quite good.

    Probably one of the most significant changes in years to the Java language.

    --
    Mathew McBride
    Head Honcho Jazilla Project

  2. Re:I'll care when native compilers become the norm by The+Bungi · · Score: 0, Redundant

    We're all devastated, let me tell you.

  3. ENUMs, yay! by mekkab · · Score: 2, Redundant

    Shoot, my list of "things I would change about Java if I actually got off my ass and did something instead of complaining all the time" just got 1 entry shorter!

    What am I going to bitch about now?!

    --
    In the future, I would want to not be isolated from my friends in the Space Station.