Wednesday, September 26, 2012

GWT Exporter: Public constructors in exportable classes

GWT Exporter currently fails silently if it meets an Exportable class whose public constructor accepts arguments other than a JavaScriptObject.

Two unrelated questions about this:

1)  Is there a technical reason why can't exportable classes can't have constructors accepting Strings, primitives, other Exportables, and arrays of those?
2)  Could we have at least a warning at compile time about this?  It would be most helpful (IMO compilation should actually fail because of this).

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/r4ABztPQ8NgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment