Sunday, December 6, 2015

Re: native JsType with constants



On Monday, December 7, 2015 at 2:47:03 AM UTC+1, Goktug Gokdogan wrote:
You need to remove initialization as well because the field by Java; the point is to link to the underlying javascript.

Actually, this isn't possible here as a field in an interface is necessarily a constant and as such requires an initializer.
I haven't follow JsInterop very closely so not sure but maybe the interface could be changed into an abstract class then?

--
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