Re: GWT 2.9 Questions

2018-09-05 Thread Jens
GWT 2.x will not drop JSNI anytime soon, only GWT 3 will as it uses a 
different Java -> JavaScript compiler internally. And yes there is really 
no timeline for GWT 3 as most work is done by contributors in free time. 
Currently we are trying to migrate GWT 2.x SDK code so it will become GWT 3 
compatible with mostly no breaking changes. This process happens on Github 
and you can see a list of projects being converted here: ci.vertispan.com . 
Also some people are working on build plugins to provide a better 
experience out of the box.

GWT 2.x SNAPSHOT already supports Java 10 syntax, however no Java 9 + 10 
API additions have been emulated yet in GWT SDK, so you can not use new 
Optional methods and such things. Also some Java 8 APIs are still missing.

The only syntax addition of Java 11 is using 'var' for lambda parameters. 
GWT depends on Eclipse JDT stable release in order to support new syntax 
features. If you don't use that feature then you should probably be able to 
run current GWT with Java 11, haven't tried it though. Never used OpenJDK 
with GWT but I can't think of a reason why it should not work.

-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.9 Questions

2018-09-05 Thread Josselin Bardet
Hi Jens,

Any idea for a release date of GWT 2.x ?
Will it add better support for java interface default functions ?

Le mer. 5 sept. 2018 à 09:07, Jens  a écrit :

> GWT 2.x will not drop JSNI anytime soon, only GWT 3 will as it uses a
> different Java -> JavaScript compiler internally. And yes there is really
> no timeline for GWT 3 as most work is done by contributors in free time.
> Currently we are trying to migrate GWT 2.x SDK code so it will become GWT 3
> compatible with mostly no breaking changes. This process happens on Github
> and you can see a list of projects being converted here: ci.vertispan.com
> . Also some people are working on build plugins to provide a better
> experience out of the box.
>
> GWT 2.x SNAPSHOT already supports Java 10 syntax, however no Java 9 + 10
> API additions have been emulated yet in GWT SDK, so you can not use new
> Optional methods and such things. Also some Java 8 APIs are still missing.
>
> The only syntax addition of Java 11 is using 'var' for lambda parameters.
> GWT depends on Eclipse JDT stable release in order to support new syntax
> features. If you don't use that feature then you should probably be able to
> run current GWT with Java 11, haven't tried it though. Never used OpenJDK
> with GWT but I can't think of a reason why it should not work.
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.9 Questions

2018-09-05 Thread Thomas Broyer
Replying to everyone in one go.

On Wednesday, September 5, 2018 at 9:12:38 AM UTC+2, Josselin B. wrote:
>
> Hi Jens,
>
> Any idea for a release date of GWT 2.x ?
>

No. You can follow advancement 
at https://github.com/gwtproject/gwt/milestone/19 (it doesn't move much 
though…)
For now, it didn't seem urgent to release a 2.9, as 2.8.2 works great for 
99.9% of people.
 

> Will it add better support for java interface default functions ?
>

What do you mean?
I can't remember issues related to interface default methods (lambdas and 
method references, sure, but not interface default methods)
 

> Le mer. 5 sept. 2018 à 09:07, Jens  a écrit :
>
>> GWT 2.x will not drop JSNI anytime soon, only GWT 3 will as it uses a 
>> different Java -> JavaScript compiler internally. And yes there is really 
>> no timeline for GWT 3 as most work is done by contributors in free time. 
>> Currently we are trying to migrate GWT 2.x SDK code so it will become GWT 3 
>> compatible with mostly no breaking changes. This process happens on Github 
>> and you can see a list of projects being converted here: ci.vertispan.com 
>> . Also some people are working on build plugins to provide a better 
>> experience out of the box.
>>
>> GWT 2.x SNAPSHOT already supports Java 10 syntax, however no Java 9 + 10 
>> API additions have been emulated yet in GWT SDK, so you can not use new 
>> Optional methods and such things. Also some Java 8 APIs are still missing.
>>
>> The only syntax addition of Java 11 is using 'var' for lambda parameters. 
>> GWT depends on Eclipse JDT stable release in order to support new syntax 
>> features. If you don't use that feature then you should probably be able to 
>> run current GWT with Java 11, haven't tried it though. Never used OpenJDK 
>> with GWT but I can't think of a reason why it should not work.
>>
>
I (almost) exclusively use OpenJDK, and never had any problem.
Also, OpenJDK 11 and Oracle JDK 11 will (finally) be functionally the same, 
so if GWT works with Oracle JDK 11, it *will* work with OpenJDK 11.

GWT 2.8.2 works with OpenJDK 10 and Oracle JDK 10 already, and while I 
haven't tested I see no reason it wouldn't work with JDK 11 (the big change 
was Jigsaw/JPMS in JDK 9).

Fwiw, my plan (personal and at work, not for GWT proper) is staying on 
OpenJDK 8 for a little while (switching from Oracle JDK 8 to OpenJDK 8 if 
needed). It looks like there will be many OpenJDK packages with LTS support 
(most Linux distros, AdoptOpenJDK, Zulu) so I may switch to OpenJDK 11 at 
some point, but I bet it won't be before a year… (first and foremost, our 
customers clearly aren't ready; some are only just switching off of Java 7 
…up to Java 8)

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.9 Questions

2018-09-05 Thread Vassilis Virvilis
Another datapoint is that debian unstable switched to openjdk10 for tomcat
so staying back to openjdk8 is also painful for me.

   Vassilis

On Wed, Sep 5, 2018 at 12:57 PM Thomas Broyer  wrote:

> Replying to everyone in one go.
>
> On Wednesday, September 5, 2018 at 9:12:38 AM UTC+2, Josselin B. wrote:
>>
>> Hi Jens,
>>
>> Any idea for a release date of GWT 2.x ?
>>
>
> No. You can follow advancement at
> https://github.com/gwtproject/gwt/milestone/19 (it doesn't move much
> though…)
> For now, it didn't seem urgent to release a 2.9, as 2.8.2 works great for
> 99.9% of people.
>
>
>> Will it add better support for java interface default functions ?
>>
>
> What do you mean?
> I can't remember issues related to interface default methods (lambdas and
> method references, sure, but not interface default methods)
>
>
>> Le mer. 5 sept. 2018 à 09:07, Jens  a écrit :
>>
>>> GWT 2.x will not drop JSNI anytime soon, only GWT 3 will as it uses a
>>> different Java -> JavaScript compiler internally. And yes there is really
>>> no timeline for GWT 3 as most work is done by contributors in free time.
>>> Currently we are trying to migrate GWT 2.x SDK code so it will become GWT 3
>>> compatible with mostly no breaking changes. This process happens on Github
>>> and you can see a list of projects being converted here:
>>> ci.vertispan.com . Also some people are working on build plugins to
>>> provide a better experience out of the box.
>>>
>>> GWT 2.x SNAPSHOT already supports Java 10 syntax, however no Java 9 + 10
>>> API additions have been emulated yet in GWT SDK, so you can not use new
>>> Optional methods and such things. Also some Java 8 APIs are still missing.
>>>
>>> The only syntax addition of Java 11 is using 'var' for lambda
>>> parameters. GWT depends on Eclipse JDT stable release in order to support
>>> new syntax features. If you don't use that feature then you should probably
>>> be able to run current GWT with Java 11, haven't tried it though. Never
>>> used OpenJDK with GWT but I can't think of a reason why it should not work.
>>>
>>
> I (almost) exclusively use OpenJDK, and never had any problem.
> Also, OpenJDK 11 and Oracle JDK 11 will (finally) be functionally the
> same, so if GWT works with Oracle JDK 11, it *will* work with OpenJDK 11.
>
> GWT 2.8.2 works with OpenJDK 10 and Oracle JDK 10 already, and while I
> haven't tested I see no reason it wouldn't work with JDK 11 (the big change
> was Jigsaw/JPMS in JDK 9).
>
> Fwiw, my plan (personal and at work, not for GWT proper) is staying on
> OpenJDK 8 for a little while (switching from Oracle JDK 8 to OpenJDK 8 if
> needed). It looks like there will be many OpenJDK packages with LTS support
> (most Linux distros, AdoptOpenJDK, Zulu) so I may switch to OpenJDK 11 at
> some point, but I bet it won't be before a year… (first and foremost, our
> customers clearly aren't ready; some are only just switching off of Java 7
> …up to Java 8)
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Vassilis Virvilis

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.9 Questions

2018-09-05 Thread Josselin Bardet
Hi,

For the interface default method problem, it is related to ui:binder way of
using setter methods.

For exemple, if you have this interface:

public interface TestInterface {
public default  void setFoo(String bar) {
System.out.println(bar);
}
}

Then this class extending a component and implementing the interface:

import com.google.gwt.user.client.ui.TextBox;

public class TestTextBox  extends TextBox implements TestInterface {

}

If you call the setFoo via the uibinder it will fail



The error message is :
[ERROR] Class TestTextBox has no appropriate setFoo() method:


This kind of interfaces can be used to extends default gwt inputs with new
properties, and delegate the action to a helper  called by the defaults
methods.


Le mer. 5 sept. 2018 à 11:57, Thomas Broyer  a écrit :

> Replying to everyone in one go.
>
> On Wednesday, September 5, 2018 at 9:12:38 AM UTC+2, Josselin B. wrote:
>>
>> Hi Jens,
>>
>> Any idea for a release date of GWT 2.x ?
>>
>
> No. You can follow advancement at
> https://github.com/gwtproject/gwt/milestone/19 (it doesn't move much
> though…)
> For now, it didn't seem urgent to release a 2.9, as 2.8.2 works great for
> 99.9% of people.
>
>
>> Will it add better support for java interface default functions ?
>>
>
> What do you mean?
> I can't remember issues related to interface default methods (lambdas and
> method references, sure, but not interface default methods)
>
>
>> Le mer. 5 sept. 2018 à 09:07, Jens  a écrit :
>>
>>> GWT 2.x will not drop JSNI anytime soon, only GWT 3 will as it uses a
>>> different Java -> JavaScript compiler internally. And yes there is really
>>> no timeline for GWT 3 as most work is done by contributors in free time.
>>> Currently we are trying to migrate GWT 2.x SDK code so it will become GWT 3
>>> compatible with mostly no breaking changes. This process happens on Github
>>> and you can see a list of projects being converted here:
>>> ci.vertispan.com . Also some people are working on build plugins to
>>> provide a better experience out of the box.
>>>
>>> GWT 2.x SNAPSHOT already supports Java 10 syntax, however no Java 9 + 10
>>> API additions have been emulated yet in GWT SDK, so you can not use new
>>> Optional methods and such things. Also some Java 8 APIs are still missing.
>>>
>>> The only syntax addition of Java 11 is using 'var' for lambda
>>> parameters. GWT depends on Eclipse JDT stable release in order to support
>>> new syntax features. If you don't use that feature then you should probably
>>> be able to run current GWT with Java 11, haven't tried it though. Never
>>> used OpenJDK with GWT but I can't think of a reason why it should not work.
>>>
>>
> I (almost) exclusively use OpenJDK, and never had any problem.
> Also, OpenJDK 11 and Oracle JDK 11 will (finally) be functionally the
> same, so if GWT works with Oracle JDK 11, it *will* work with OpenJDK 11.
>
> GWT 2.8.2 works with OpenJDK 10 and Oracle JDK 10 already, and while I
> haven't tested I see no reason it wouldn't work with JDK 11 (the big change
> was Jigsaw/JPMS in JDK 9).
>
> Fwiw, my plan (personal and at work, not for GWT proper) is staying on
> OpenJDK 8 for a little while (switching from Oracle JDK 8 to OpenJDK 8 if
> needed). It looks like there will be many OpenJDK packages with LTS support
> (most Linux distros, AdoptOpenJDK, Zulu) so I may switch to OpenJDK 11 at
> some point, but I bet it won't be before a year… (first and foremost, our
> customers clearly aren't ready; some are only just switching off of Java 7
> …up to Java 8)
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.9 Questions

2018-09-05 Thread Jens


> For the interface default method problem, it is related to ui:binder way 
> of using setter methods.
>

The reason is that GWT hides default methods from GWT generators for 
backward compatibility as some generators might not expect them.

I don't know if there has been any discussion recently to change that. 

-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.9 Questions

2018-09-05 Thread Slava Pankov
IMO even "Update CLDR to version 32.0.1 
"
 
is worth for releasing GWT 2.9

On Wednesday, September 5, 2018 at 2:57:34 AM UTC-7, Thomas Broyer wrote:
>
> Replying to everyone in one go.
>
> On Wednesday, September 5, 2018 at 9:12:38 AM UTC+2, Josselin B. wrote:
>>
>> Hi Jens,
>>
>> Any idea for a release date of GWT 2.x ?
>>
>
> No. You can follow advancement at 
> https://github.com/gwtproject/gwt/milestone/19 (it doesn't move much 
> though…)
> For now, it didn't seem urgent to release a 2.9, as 2.8.2 works great for 
> 99.9% of people.
>  
>
>> Will it add better support for java interface default functions ?
>>
>
> What do you mean?
> I can't remember issues related to interface default methods (lambdas and 
> method references, sure, but not interface default methods)
>  
>
>> Le mer. 5 sept. 2018 à 09:07, Jens > 
>> a écrit :
>>
>>> GWT 2.x will not drop JSNI anytime soon, only GWT 3 will as it uses a 
>>> different Java -> JavaScript compiler internally. And yes there is really 
>>> no timeline for GWT 3 as most work is done by contributors in free time. 
>>> Currently we are trying to migrate GWT 2.x SDK code so it will become GWT 3 
>>> compatible with mostly no breaking changes. This process happens on Github 
>>> and you can see a list of projects being converted here: 
>>> ci.vertispan.com . Also some people are working on build plugins to 
>>> provide a better experience out of the box.
>>>
>>> GWT 2.x SNAPSHOT already supports Java 10 syntax, however no Java 9 + 10 
>>> API additions have been emulated yet in GWT SDK, so you can not use new 
>>> Optional methods and such things. Also some Java 8 APIs are still missing.
>>>
>>> The only syntax addition of Java 11 is using 'var' for lambda 
>>> parameters. GWT depends on Eclipse JDT stable release in order to support 
>>> new syntax features. If you don't use that feature then you should probably 
>>> be able to run current GWT with Java 11, haven't tried it though. Never 
>>> used OpenJDK with GWT but I can't think of a reason why it should not work.
>>>
>>
> I (almost) exclusively use OpenJDK, and never had any problem.
> Also, OpenJDK 11 and Oracle JDK 11 will (finally) be functionally the 
> same, so if GWT works with Oracle JDK 11, it *will* work with OpenJDK 11.
>
> GWT 2.8.2 works with OpenJDK 10 and Oracle JDK 10 already, and while I 
> haven't tested I see no reason it wouldn't work with JDK 11 (the big change 
> was Jigsaw/JPMS in JDK 9).
>
> Fwiw, my plan (personal and at work, not for GWT proper) is staying on 
> OpenJDK 8 for a little while (switching from Oracle JDK 8 to OpenJDK 8 if 
> needed). It looks like there will be many OpenJDK packages with LTS support 
> (most Linux distros, AdoptOpenJDK, Zulu) so I may switch to OpenJDK 11 at 
> some point, but I bet it won't be before a year… (first and foremost, our 
> customers clearly aren't ready; some are only just switching off of Java 7 
> …up to Java 8)
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.9 Questions

2018-09-05 Thread Josselin Bardet
It would be nice to implement this, I'm using it a lot.

I've created an issue for this:
https://github.com/gwtproject/gwt/issues/9629

Le mer. 5 sept. 2018 à 14:58, Jens  a écrit :

>
> For the interface default method problem, it is related to ui:binder way
>> of using setter methods.
>>
>
> The reason is that GWT hides default methods from GWT generators for
> backward compatibility as some generators might not expect them.
>
> I don't know if there has been any discussion recently to change that.
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.