Yes, field names return to being named in JavaScript as declared in Java
after the addition of the -generateJsInteropExports compiler parameter. Why
isn't this the default compiler behavior, though? After all, I followed the
JsInterop spec, which, in @JsType section
<https://docs.google.com/document/d/10fmlEYIHcyead_4R1S5wKGs1t2I7Fnp_PaNaa7XTEk0/edit#heading=h.7w4qj58w18ep>,
states:

"The contract says that any instance behind this interface must have
methods or properties with the original name in JavaScript (i.e not
renamed, not pruned)."
"As the class is annotated with @JsType, it will preserve its original
names for all of its public API. This makes the class easily accessible
from JavaScript"


On Fri, Aug 19, 2016 at 3:38 PM Jens <[email protected]> wrote:

> @JsType with isNative = false (the default) are probably treated as normal
> classes now if you do not use -generateJsInteropExports as compiler
> parameter. I guess it works again if you use the compiler parameter?
>
> -- J.
>
> --
> 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/3f124c9c-f38b-413b-91c9-ab1c0c741e24%40googlegroups.com
> <https://groups.google.com/d/msgid/google-web-toolkit-contributors/3f124c9c-f38b-413b-91c9-ab1c0c741e24%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
*BORIS BRUDNOY*
Web Application Developer, Java/GWT Enthusiast (LinkedIn
<http://ca.linkedin.com/in/borisbrudnoy>)

-- 
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/CAD%3DgKQ2SR1Tp0TrZ3midfYcRRz%2BiGb9C-vKL8eO7XRa65pWNtA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to