注:本新闻来自Jim White的 WHITE'S BOARD。
Thanks Jim.
原文如下:
I just returned from JavaOne. Details on Java 7 and Java EE 6 were big topics during the conference.
Java 7 is expected to be released Feb 2010.
Based on last year's conference notes and milestones released this year
already, many thought (including myself) that Java 7 would be released
sooner. The last feature-complete milestone is scheduled for Oct 2009.
I attended a few sessions that discussed what will be in Java 7.
Everyone was careful to say that the final decisions hadn't been made
yet, indicating there is still work being done on Java 7. Some of the
things likely to be in Java 7...
1. modules (allowing you to customize the features of Java you need for your app and finally killing the classpath)
2. null check operator/conditional - "?:"
3. Strings in switches
4. multiple exception catches in the catch block (using "")
5. diamond operator to allow the generics to be more easily used.
//For example...
HashMap> map = new HashMap>();
//becomes
HashMap> map = new HashMap<>();
Things not likely to make Java 7 but at one time rumored to have a chance...
1. closures
2. SQL expression checking
Java EE 6 will actually come out sooner. Java EE 6 is due on in final form in Sept 2009. In this release, the big new features are:
1. JAX-RS (support for RESTful web services)
2. JSF 2.0
3. Asynch servlets
4. Bean validation (adding validation to JavaBeans that can be used to validate property data anytime they are used).
5. Web.xml is gone (at least it can be gone) with the use of annotations and/or web.xml fragments.
6. Web beans - essentially session beans in the WAR file.
A few other notes from the conference...
Eclipse Galileo is the next train release of Eclipse (following the previous year releases of Calisto, Europa, and Ganymede) and it will come out on June 24th.
This release now includes 33-48 Eclipse projects (Ganymede included 24
projects). On Jun 26, there will be a live Webinar to learn about new
features. From the talk, I wouldn't say there is any real big thing in
this release that most of us would use on a regular basis.
Spring has a new project called Spring Roo
(yes for kangaroo). Essentially, this is Rails or Grails but all in
Java and Spring. Meta programming is here to stay folks. I hope to have
more on that in a later blog posting.
谈谈自己的看法吧,在作者提到的Java 7几大特性中,第一点让我很感兴趣,“finally killing the classpath”,意味着classpath即将寿终正寝?
Eclipse Galileo也即将推出正式版了,不清楚有什么新特性,前几天为了试用Visual Editor1.4, 曾经试用过Galileo,比之Ganymede没有感觉到太多的变化。
总之,继续等待吧!