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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/6cad2b2f-b3d6-46fe-9f65-3831a675017d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to