Hello all, I was tripped yesterday by a discrepancy in JsType field treatment between beta1 and rc2 releases, so I made a small Maven project reproducing it: https://github.com/bbrudnoy/jsinterop-test.
The problem is as follows: given a simple JsType-annotated class, HelloWorld <https://github.com/bbrudnoy/jsinterop-test/blob/master/jsinterop.test-client/src/main/java/jsinterop/test/HelloWorld.java> : @JsType(namespace = JsPackage.GLOBAL) public class HelloWorld { public String hello = "Hello"; public String world = "World"; } passing an instance of it to a JavaScript function from GWT, as I do in App.java <https://github.com/bbrudnoy/jsinterop-test/blob/master/jsinterop.test-client/src/main/java/jsinterop/test/App.java#L95>, the field names are preserved and usable in JavaScript, *if I use beta1*. Chrome Dev tools show this: <https://lh3.googleusercontent.com/-60nxUo_MbnM/V7chKOWbK1I/AAAAAAAAAF4/CgO1t4uFrjMbykdGLl4rYWFo2VKF-nkSgCLcB/s1600/HelloWorld-gwt_beta1.png> however, for the same code, if I change GWT version to *2.8.0-rc2*, the fields become obfuscated and are no longer usable in JavaScript which worked previously: <https://lh3.googleusercontent.com/-8FMOkIT4Qp4/V7chlhi-thI/AAAAAAAAAF8/VAyNAVvTzfQpdhPWEKUiObjJG7uGkd0iQCLcB/s1600/HelloWorld-gwt_rc2.png> Is this a JsInterop issue, or am I missing something in the way JsInterop has officially changed in RC2? -- 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/b2048b76-cf36-4a4b-8e54-137078926050%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
