6

I have an application which is developed using GWT 2.6 and Java 7. Now I am updating it to Java 8 with GWT 2.6.

  1. Is GWT 2.6 compatible with Java 8? Will it build/compile fine?
  2. Is GWT 2.7 compatible with Java 8? Any suggestion?
nbrooks
  • 18,126
  • 5
  • 54
  • 66
moh
  • 1,426
  • 2
  • 16
  • 43

6 Answers6

14

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

Java 8 as a source language won't be supported before GWT 2.8 though, as already pointed by others.

Thomas Broyer
  • 64,353
  • 7
  • 91
  • 164
3

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

On the server, you can use JDK8.

thst
  • 4,592
  • 1
  • 26
  • 40
1

Java 8 support should come 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 I understand there are some improvements in 2.7, but it is not enough. There is a way that by dividing the project you can achieve that you can use Java 8 on the server side and java 7 with GWT on UI.

Community
  • 1
  • 1
Rufi
  • 2,529
  • 1
  • 20
  • 41
0

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

Community
  • 1
  • 1
Drustant
  • 9
  • 2
  • Please give attribution when you copy/paste someone else's answer (and it's even better if it doesn't look like you're the author but are just quoting someone else): https://stackoverflow.com/a/15693528/116472 It's even worth when you do it wrong and it looks like you're contradicting yourself (sic!) in just 2 sentences. – Thomas Broyer Apr 28 '15 at 09:46
0

It's seems to be GWT 2.8 and 3.0.

In the meantime, GWT 2.8 is due out within three months. Its main feature is support for Java 8, including lambdas.

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

Steph
  • 779
  • 1
  • 8
  • 18
0

According to Release Notes for 2.8.0

Highlights

  • Java 8 syntax supported.
  • JsInterop has graduated from experimental. See final JsInterop specification.
  • GSS is no longer considered as experimental and old CssResource is now deprecated.

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

Update: Stable version of 2.8.0 is released on Oct 20, 2016

Alex
  • 521
  • 7
  • 7