Wild guess mode:

ints are weird in jsinterop. Basically js does not have ints. I would
suggest first try with String not int and if that work with Double.

If this is not the problem:

   - Compile with preety flags so you understand what's going on
   - Start a debugging session with chrome. Other browser may work too but
   Chrome gives the better insights.

Step to the error (enable pause on exceptions) and try to figure out what
happens. If you are like me at first you will understand nothing but later
on with enough meditation you will start see patterns.

As a general notice (that doesn't apply here) jsinterop works better with
generics than casts. So don't afraid to use generics but avoid casts.

Hope that helps.

    Vassilis



On Wed, Feb 8, 2017 at 8:26 PM, Kirill Prazdnikov <[email protected]> wrote:

> Hi,
>
> You can use @JsProperty instead of "int value;":
>
>   @JsProperty
>   public abstract int getValue();
>
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to