An early access prototype implementation of new J2SE 1.5 language features is available. In this version of prototype for JSR014, JSR 65 Concise Object-Array Literals (usually referred to varargs) and JSR 201 Extending the Java Programming Language with Enumerations, Autoboxing, Enhanced for loops and Static Import are also supported. In addition, Variance concept for generic types and array types are introduced so that you may program Java codes in a more abstract and integral fashion.
You can download this exciting implementation from http://developer.java.sun.com/developer/earlyAccess/adding_generics/index.html
It requires J2SE 1.4.1 or later and provides some examples on how to actually use enum, varargs, foreach style loop, boxing-unboxing, static import, and so on.
This early access must be bliss for those who can’t wait for Tiger beta which is going to appear in 2003 4th quarter.
本文地址:http://com.8s8s.com/it/it17767.htm