Got this heads up from slashdot. Here are some of the features implemented:
Draft specs for enumerations, autoboxing, enhanced for loop, static import are being made available concurrently with the release of this JSR.
Note that enumerations, autoboxing and the enhanced for loop (foreach) are some of the reasons that I like C# the language over java the language. There are a couple of more things in C# that are not in java, but I find it amusing that, for all the cries that C# was just copying java, that java is now in fact, copying C#.
The static import is kinda neat. In a nutshell you can do this:
import static Math.*;
and then you can write this in your code
int x = abs(y);
instead of
int x = Math.abs(y);
This is a code cleanup kinda thing, but I approve. Anyway, this should make for all sorts of fun flame wars in the future. Slashdot article
Comments
Re: Java 1.5 preview
good stuff, thanks for the info.
Re: Java 1.5 preview
static import seems pretty nice. Sort of like "using namespace" in C++. I think it would be cool if an OOP language would implement some sort of namespace "path", just like $PATH on UNIX. That way if you use some sort of identifier that isn't in the default namespace, the language would search through your specified classes and qualify it based on the first match it finds. I suppose maybe just adding multiple static imports would do this in java...but I think C++ only allows one using namespace...I haven't verified this.
Re: Java 1.5 preview
well thats kind of what the classpath does in java. the classpath can be a mess mind you, but that was the intention at least.
the static import thing allows you to do imports on methods and fields rather than just classes and interfaces.
[url=http://jcp.org/aboutJava/communityprocess/jsr/tiger/static-import.html]http://jcp.org/aboutJava/communityprocess/jsr/tiger/static-import.html[/url]
[%sig%]