Thursday, October 29, 2015

JsInterop JS_RC JsProperty name on method

Hi all,

Is seems like the following construction is not working when using the new JsInterop (JS_RC):

  @JsProperty(name = "facets")
  public Facet[] getFacetArray() { ... }

  @Override // This method is defined in an interface
  @JsIgnore
  public List<Facet> getFacets() { ... }

The result is that the compiled property is still called facetArray.

Does anyone perhaps have any suggestions of how to work around this or why it is not working? If not, I will raise an issue in the GWT bug tracker, but I wanted to check here first.

Thanks!
Simon

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment