GWT 2.6 with GXT-3.0.1 error in compile

怎甘沉沦 提交于 2019-12-19 08:12:41

问题


since the 2.6.0 release of GWT which dropped support of ie6 browser my current project which also uses GXT is failing to compile with the following error:

Loading inherited module 'com.sencha.gxt.ui.GXT'
        Loading inherited module 'com.sencha.gxt.data.Data'
           Loading inherited module 'com.sencha.gxt.core.Core'
              [ERROR] The value ie6 was not previously defined.
              [ERROR] Line 96: Unexpected exception while processing element 'set-property'

i tried to set <set-property name="gxt.user.agent" value="safari3, safari4, safari5, chrome, air, gecko1_8, gecko1_9"/> and the <extend-property name="user.agent" ....../> but without any success. Are there any workarounds on this?


回答1:


GWT 2.6.0 has several breaking changes over GWT 2.4.0 and 2.5.1 - these don't affect all libraries, but they do affect both GXT 2 and 3. Code changes in GWT 2.6.0 that break libraries like GXT include:

  • Changing permutations (ie6 and opera are gone, ie10 was added, note that newer versions of opera are webkit based and do not need their own permutation)
  • Element added new final methods hasClassName and toggleClassName that can't compiled with XElement methods of the same name
  • String utils methods removed, switched to newer version of Guava (which now uses those methods)

Saw an upvote, so I know this is still getting readers months later, so editing this to point out that GXT 3.1.0 is in maven central and supports GWT 2.6.0, 2.6.1, and as of Friday anyway, supports GWT 2.7.0-SNAPSHOT. I can't promise it is totally future-proof, but as long no public methods in GWT change, it isn't likely to break again in the GWT 2.7 series.



来源:https://stackoverflow.com/questions/21517007/gwt-2-6-with-gxt-3-0-1-error-in-compile

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!