This happens with the last snapshot and not, I'm not using '
-generateJsInteropExports'.  There is a bit longer explanation and 
discussion in the gwt gitter room (https://gitter.im/gwtproject/gwt).

On Tuesday, April 12, 2016 at 5:12:45 PM UTC+2, Paul Stockley wrote:
>
> Also, forgot to mention. I had quite a few issues with the Beta that went 
> away in the latest snapshot build.
>
> On Tuesday, April 12, 2016 at 11:11:17 AM UTC-4, Paul Stockley wrote:
>>
>> Are you compiling with -generateJsInteropExports ?
>>
>> On Tuesday, April 12, 2016 at 9:57:10 AM UTC-4, Ignacio Baca 
>> Moreno-Torres wrote:
>>>
>>> This code:
>>> public class Client implements EntryPoint {
>>>     Console log = Browser.getWindow().getConsole();
>>>
>>>     @Override public void onModuleLoad() {
>>>         Foo foo = new Foo();
>>>         foo.bar = 666;
>>>         log.log(foo);
>>>     }
>>>     
>>>     @JsType public static class Foo {
>>>         public int bar;
>>>     }
>>> }
>>>
>>>
>>> Generate this js:
>>> function $onModuleLoad(this$static){
>>>   var foo;
>>>   foo = new Client$Foo;
>>>   $log(this$static.log_0, foo);
>>> }
>>>
>>>
>>> I.e.: the Foo.bar var is pruned. This makes this common case (IMHO) 
>>> fail silently (an empty object is sent to the server):
>>>
>>> Foo f = new Foo(); f.bar=666; request.send(f);
>>>
>>> This can be fixed using isNative=true, which might be ok, but the 
>>> important thing is that this code fails silently which is really annoying. 
>>> Thanks.
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/d4e3669c-19be-46ab-8310-7fc98fc3a761%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to