根据Jim White从本次JAVAONE带回来的报道。新的Java 7 以及Java EE 6将分别于,2010年二月和2009年10月发布。
在本次JAVAONE中同时公布了一些新的JAVA 7和JAVA EE6将要支持的新特性,包括:
- modules (allowing you to customize the features of Java you need for your app and finally killing the classpath)
- null check operator/conditional – “?:”
- Strings in switches
- multiple exception catches in the catch block (using “”)
- diamond operator to allow the generics to be more easily used.
//For example…
HashMap> map = new HashMap>();
//becomes
HashMap> map = new HashMap<>();
没有在本次JAVAONE公布但是有传言将会支持的新特性:
- closures
- SQL expression checking
新的JAVA EE 6将会有如下的主要变更:
- JAX-RS (support for RESTful web services)
- JSF 2.0
- Asynch servlets
- Bean validation (adding validation to JavaBeans that can be used to validate property data anytime they are used).
- Web.xml is gone (at least it can be gone) with the use of annotations and/or web.xml fragments.
- Web beans – essentially session beans in the WAR file.
JAVA 7将会在今年9月份结束最后一个Milestone版本,该版本将会包括正式版JAVA 7中的所有新特性。而JAVA EE 6的最后一个Milestone版本将会在今年9月份发布。
另外,Jim White在本次JAVAONE中带回的新消息还包括,Eclipse IDE的下一个版本“Eclipse Galileo”将会在六月24日发布,该版本会有非常大的变动,支持了Eclipse社区新增的33-48个新的projects。
并且Spring会公布一个全新的项目“Spring Roo”。