[ERROR] Ambiguous method signature lienzo.client.core.Context2D::drawImage(Lcom/google/gwt/dom/client/Element;DDDDDDDD) would conflict in JS with another method
How exactly should I deal with overloaded methods? Clearly, GWT is getting around this somehow (surely it is renaming things as it translates to JS), but when exporting situations like this cause problems.
Thanks in advance.
// David
--
public Context2D drawImage(ImageJSO image, double sx, double sy, double sw, double sh, double x, double y, double w, double h)
and
public Context2D drawImage(Element image, double sx, double sy, double sw, double sh, double x, double y, double w, double h)
Where ImageJSO is a [public inner] class of ours that extends from JavaScriptObject, and Element is a GWT class, which also extends from JavaScriptObject.
Could that be causing trouble?
Thanks for the help.
// David
Thats the problem, you can not overload a method with the same number of arguments and same types in exporter. In js JavaScriptobjects have the same signature, since they are gwt overlay types which can be cast.
- Manolo
--
--