What is new in GWT 2.6

In the end of 2013 we are expecting really cool present from GWT development team, that would be the new GWT 2.6 version.  There are some really important changes provided in this version, which will make many GWT devs very happy:) We can already use the GWT 2.6 RC-1 version, which can be found in maven and in google code.

Some of the most important changes since last version:

1) Support for Java7 language and partial library support. 

If you are already using Java 7 features in your project, you must have been little curious or eager to use it in GWT. Since 2.6 version, GWT users can use Java 7 Programming language enhancements, such as  multicatch,  string in switch statements, smart constructors inferring the generic types etc. The list of  all Java7 improvements is shown here :

http://docs.oracle.com/javase/7/docs/technotes/guides/language/enhancements.html#javase7.

Besides that some standard library enhancements like  Integer.compare(int,int) are planned to be added.

2) Compiler support for @GwtIncompatible

This annotation allows you to mark some of the elements of your API as “not visible” to the GWT compiler. Example of using it would be a class, which is shared by client code and the server code, having some methods which are using API not allowed by GWT compiler. You can reference the unsupported method with @GwtIncompatible annotation, and the code will be compiled without any errors.


@GwtCompatible
public class MyData {

private String info;
 private Date date;

@GwtIncompatible("method is using java.util.Calendar")
 public void nextDay() {
 Calendar instance = Calendar.getInstance();
 instance.setTime(date);
 instance.roll(Calendar.DATE, true);
 date = instance.getTime();
 }

}

3) New version of Guava nad JDT

4) Maaaany Bug fixes for well-known issues.

The list of all fixes is here: defects with mileston=2.6 . I found fixes for at least 2 issues I have been struggling some time ago:) It is nice to see some progress with them:)

Links

More recent news about GWT development: https://groups.google.com/forum/#!forum/google-web-toolkit-contributors

GWT 2.6 Release plan: https://docs.google.com/document/d/1ZdMwcTjc4rkWg6nntCY1BDB1xI2PHPwaCnTYw-9uAKE/edit?usp=drive_web

All issues scheduled for GWT 2.6 : https://code.google.com/p/google-web-toolkit/issues/list?can=1&q=milestone%3D2_6+&colspec=ID+Type+Status+Owner+Milestone+Summary+Stars&cells=tiles

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: