tags:

views:

155

answers:

2

Possible Duplicate:
Closures in Java 7

There are so many articles and web pages about Closures in JDK 7. As i remember, first they said that Closures will be in JDK7, then they said that they won't be - but that was in the beginning of 2009. Then in the end of 2009 they said that they will be in JDK7 again. Now as i'm researching this issue, i'm a bit confused and i just can't find a definite, absolutely final statement for this.

I found out that Closures are now under the hood of Project Lambda, but not if it will be included in the final JDK (i only read "proposal", "eventual" etc.)

As i'm currently writing a thesis where i want to tell if Closures are supported in JDK 7 i need to be completely sure and i also need a good source for this information (as new as possible, possibly from someone from the JDK staff or so).

Any help highly appreciated!

+1  A: 

You can surely expect 'Closures will be included in JDK 7' because among 8 milestones for this release Milestone 6 has been included Closures. Project Lambda also got approved.

When Milestone 6 has included Closures, we can surely expect it will be with JDK 7

venJava
Sorry, but M6 does not include lambdas and there's nothing guaranteeing that JDK 7 will have them either. Work is in progress on a fork, that's all.
ColinD
+1  A: 

Unfortunately I don't think there is any absolute answer to your question right now. JDK 7 may or may not have lambdas. Work is in progress and there has been quite a bit of activity on the project-lambda mailing list, but I don't think Oracle is saying anything right now about the schedule or whether or not project-lambda will be included. It still has a long ways to go and a lot of design issues to be worked out, I think.

You should follow the lambda-dev mailing list and check its archives if you want to know more.

ColinD