gwtproject / gwt

GWT Open Source Project
http://www.gwtproject.org
1.51k stars 373 forks source link

deprecated com.google.gwt.user.client.Element still inherited by UIObject ! #8453

Open dankurka opened 9 years ago

dankurka commented 9 years ago

Originally reported on Google Code with ID 8469

Found in GWT Release 2.6.0-rc1

Encountered on any platform

Should now be derived from com.google.gwt.dom.client.Element ?

Reported by biancashouse on 2013-11-28 12:12:54

dankurka commented 9 years ago
Apologies - I meant to say that UIObject.getElement() returns the deprecated Element
!

Reported by biancashouse on 2013-11-28 12:17:20

dankurka commented 9 years ago
That would be a breaking change, so we're only slowly moving out of c.g.g.user.client.Element.

To be clear, the following code:

 com.google.gwt.user.client.Element elt = someUiObject.getElement();

would break if getElement() started returning c.g.g.dom.client.Element.

The change *will* happen though, just not in 2.6.

Reported by t.broyer on 2013-11-29 09:10:06

dankurka commented 9 years ago

Hi
in case to migrate my modules from GXT 2.2.4 GWT 2.5.1 to GXT 2.31 and GWT 2.6.0(or
2.6.1-rc1) ; i got this error:[ERROR] Errors in 'jar:file:/C:/Users/XXX/.m2/repository/com/extjs/gxt/2.3.1-gwt22/gxt-2.3.1-gwt22.jar!/com/extjs/gxt/ui/client/widget/form/HtmlEditor.java'[INFO]
[ERROR] Line 548: Type mismatch: cannot convert from com.google.gwt.dom.client.Element
to com.google.gwt.user.client.Element[INFO] [ERROR] Errors in 'jar:file:/C:/Users/XXX/.m2/repository/com/extjs/gxt/2.3.1-gwt22/gxt-2.3.1-gwt22.jar!/com/extjs/gxt/ui/client/widget/treepanel/TreePanel.java'[INFO]
[ERROR] Line 1634: The constructor El(Element) is undefined.

Any help is appreciated

Reported by rabhi.houcem on 2014-05-09 10:33:28

dankurka commented 9 years ago
@rabhi.houcem: AFAICT, you have to use GXT 3.1.0 for the GWT 2.6 compatibility: http://docs.sencha.com/gxt/3.1/announcements/Announcements.html

Please use the forum to ask for support; issue trackers are not the right tool.
https://groups.google.com/forum/#!forum/google-web-toolkit

Reported by t.broyer on 2014-05-13 10:15:22