EDIT : An earlier version of this post talked about Java 8 Streams, which are not supported by GWT 2.8 for the moment. My apologies.
A few weeks ago, the GWT Team released on Maven a beta for the new version of GWT: GWT 2.8 beta 1. This new version has been announced for a while and was eagerly awaited by the community.
Other than speed improvement and many cool new enhancements, there are new features we can now use in our GWT application. One big feature of this version, in my opinion, is the support of lambdas, a part of Java 8.
In Java 7, if one wanted to pass a function in parameter, they had to do something like that :
In Java 8 (and also in GWT 2.8), simply do this:
We now have a more elegant way to write exactly the same functionality. It makes for more compact code, with less clutter and cleaner code.
If you want to see concretely what a migration to GWT 2.8 beta1 is like on a typical GWT 2.7 application, just refer to this pull request. I am currently in the process of moving our BeeStore sample to GWT 2.8. It will give you an idea of how to do so.
We just covered the tip of the iceberg of what is new in GWT 2.8. See the complete release notes for the complete list of features that GWT 2.8 beta 1 brings.
Feel free to tell us what cool web application you did (or plan to do) with GWT 2.8 or JsInterop in the comments!