Is Java 8 compatible with GWT 2.6 or 2.7?

I have an application that is developed using GWT 2.6 and Java 7. Now I upgrade it to Java 8 using GWT 2.6.

  • Is GWT 2.6 compatible with Java 8? Will he build / compile a fine?
  • Is GWT 2.7 compatible with Java 8? Any suggestion?
+5
source share
6 answers

If you are interested in using JDK 8 to compile your application without using Java language constructs, then GWT 2.6 and 2.7 will work.

Java 8 as a source language would not be supported until GWT 2.8, though, as others have already pointed out.

+13
source

In version 2.7, you can use Java7 syntax on the client. You cannot use Java8 syntax and runtime on the client.

On the server, you can use JDK8.

+3
source

Java 8 support should appear in GWT 2.8 according to this post: Java 8 support in GWT .

So basically you cannot use Java 8 in GWT 2.6. As far as I understand, there are some improvements in 2.7, but this is not enough. There is a way that dividing the project, you can achieve that you can use Java 8 on the server side and java 7 with GWT in the user interface.

+1
source

Edit: you should take a look at this Java 8 support in GWT

0
source

It seems to be GWT 2.8 and 3.0.

In the meantime, GWT 2.8 will be released within three months. Its main function is support for Java 8, including lambdas.

http://www.infoworld.com/article/2874861/application-development/google-web-toolkit-major-upgrades-no-backward-compatibility.html

0
source

According to release notes for 2.8.0

The main

  • Java 8 syntax is supported.
  • JsInterop has finished experimental. See the Ultimate JsInterop Specification.
  • GSS is no longer considered experimental, and the old CssResource is now deprecated.

http://www.gwtproject.org/release-notes.html#Release_Notes_2_8_0_BETA1

Update: The stable version 2.8.0 was released on October 20, 2016.

0
source

All Articles