GWT 2.6.1 unknown compile issue

a 夏天 提交于 2019-12-04 19:43:21
Colin Alworth

First does GWT and/or SmartGWT support JDK 1.8 yet, or just 1.7 for now? I am using jdk 1.7, but would like to try 1.8 eventually.

The GWT Compiler in 2.6 does not support Java 1.8. The current version of GWT in git does not either, but there is a fork being maintained that adds support. Extremely short version of the issues: The language features themselves aren't too bad too add (and the described fork already has them), but the new JRE library features need to be ported too (and legally! can't just copy from Oracle's code, that way lies lawsuits).

java.lang.NoSuchFieldError: warningThreshold

Two possible issues can cause this, both classpath related.

The first is a gwt version issue - you are somehow mixing and matching versions of GWT on your classpath. Look through the full (but not included in this question, so I can't give you more specifics), and you'll likely find an extra copy of GWT 2.5 or 2.4 somewhere listed. I suspect this is the most likely since it tends to be specific to your GWT upgrade.

Another option is that you have another (very likely older) JDT on your classpath somewhere (since GWT 2.6 updated to a new JDT version). See related question GWT + Spring hosted mode not working - this is talking about dev mode, but it is the same idea. This seems less likely to me since you should be using the same classpath whether in eclipse or maven, but is still possible.

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