views:

826

answers:

13

Java SE 7 is the next major release for Java SE.

The details are sketchy, same goes for timelines, although Alex Miller has a nice round-up, and generally a good place to start.

Also, here is a summary of Java 7 update by Mark Reinhold, cheif engineer for Java SE.

So, what major features scheduled for release are you looking forward to?

+10  A: 

Well with the removal of closures, extension methods, first-class properties and reified generics... not a lot.

Seriously, what's the point?

cletus
Wow. I did not know they were removing that much.
unforgiven3
Removed from what?
Tom Hawtin - tackline
I think modularization and stability are great points. For the cool stuff, there are many great other languages on the JVM.
Fabian Steeg
You should change the answer. Someone might think, features were removed from Java.
ivan_ivanovich_ivanoff
They were removed... from the proposed feature list and the list of JDK 7 JSRs.
cletus
+3  A: 

Well... I won't be looking for closures, they're out.

Module system is the runner up.

Allain Lalonde
+3  A: 

Null dereference expressions - Null checks with '?' syntax similar to Groovy... letting developers avoid a nest of null checks.

JeeBee
+4  A: 

Better type inference - Example around generics instantiations, but it was not clear how far the inference would be taken (the more the better in my opinion).

JeeBee
+11  A: 

Multi-catch - (yes!) allows a comma seperated list of disjunctive exception types in catch clause.

JeeBee
A: 

Safe rethrow - Allows a broad catch clause, with the compiler being smarter on what you're allowed to rethrow based on what is thrown from the try block. (I had not seen this before but it looks nice)

JeeBee
A: 

MigLayout in the JDK :)

furtelwart
Please NO! MigLayout is lucky to be outside of JDK... it can be improved much faster this way.
Peter Štibraný
+1  A: 

Closures would have been the biggest deal for me.

However, with the proliferation of JVM languages like Groovy and Scala, the features and speed of development of those languages means I find it very hard to actually get worked up about anything in mainstream Java.

Admittedly I think that's how it should be, and I see Java going more conservative now, consolidating its existing position rather than pushing for more features. I'm happy to use Scala for closures and actors and case classes and pattern matching and promoted immutability, rather than demanding that Java copy these ideas.

Andrzej Doyle
A: 

Better support for dynamic languages for an even better JRuby and other dyn. lang. implementations will be nice.

Jonas Elfström
Closures weren't changing the VM, so hardly a problem for other languages.
Tom Hawtin - tackline
Thanks, I should have known.
Jonas Elfström
+7  A: 

The new date/time API inspired by Joda Time: JSR-310

Joachim Sauer
I believe I've heard on the Java Posse that there is some issue and it is not clear if that is going to go into Java 7.
Fabian Steeg
Steeg: if that's true, then that's very, very sad. Java needs a new Time/Date API! And JSR-310 looks really good (especially compared with what we've got now).
Joachim Sauer
Totally, and I believe it was a small issue they were talking about, nothing that sounded like it could not be fixed in time.
Fabian Steeg
+4  A: 

Type Annotations (JSR 308), e.g. to define a list of strings which must not be null:

List<@NonNull String>
Fabian Steeg
In my view the benefit of this feature does not outweigh its cost in terms of readability. In my view, @NonNull should only be allowed on method parameters.
Gili
I think the benefit is enormous: static analysis could infer that you might be placing null values into collections of which you assume they contain only non-nulls. This would save us from many bugs, and in particular from many null checks all over.
Fabian Steeg
+1  A: 

More New I/O APIs (JSR 203 aka the new new IO).

Fabian Steeg
+1  A: 

Removal of old deprecated code. Modular system so that we can strip out unwanted packages Further HotSpot improvements

In other words: Lets just get something simple out and lets talk about closures etc for the next release!!

Fortyrunner
There is very little deprecated code.
Tom Hawtin - tackline