I have the following class:
@JsType
public class Options {
@JsProperty
public boolean extractUrlsWithoutProtocol;
public Options(boolean extractUrlsWithoutProtocol) {
this.extractUrlsWithoutProtocol = extractUrlsWithoutProtocol;
}
}
Now I pass it into a javascript method and when I use developer tools to inspect I get that property name is extractUrlsWithoutProtocol_0_g$
What's more if I remove the @JsProperty annotation I get no change to the generated code...
Update: What does work is
public native void setExtractUrlsWithoutProtocol(boolean extractUrlsWIthoutProtocol_)
/*-{
this.extractUrlsWithoutProtocol = extractUrlsWIthoutProtocol_;
}-*/;