我正在尝试在使用java 6编译的项目中迁移到gwt 2.6 该项目由基于gwt和gwt应用程序的库组成。 启动我的应用程序时,我得到一个“ javascriptObject major.minor 51.0例外 ” 我知道这是因为java 7中内置了gwt 2.6 所以我将<sourceLevel>1.6</sourceLevel>到我的maven gwt插件中 但没有任何改变,因为我认为这仍然存在于图书馆方面的问题。 (在Java 7中编译的库,在java7中具有GWT依赖性) 你有什么想法在构建我的lib时如何使用sourceLevel? 谢谢
I'm trying to migrate to gwt 2.6 in a project compiled using java 6 The project is made of a library based on gwt and a gwt application. When launching my app I get a "javascriptObject major.minor 51.0 exception" I know that it's because of gwt 2.6 built in java 7 So I added <sourceLevel>1.6</sourceLevel> to my maven gwt plugin But nothing changed, because I suppose that still persists the problem in the library side. (Library compiled in java 6 with a GWT dependency in java7) Have you got any Idea on how to inidicate sourceLevel while building my lib? Thanks
最满意答案
GWT 2.6“GA”将使用Java 6编译以克服此错误。 GWT 2.6应该仍然与Java 6兼容; GWT 3.0可能不会,至少对于客户端代码而言。
与此同时,要么迁移到Java 7,要么等待与Java 6兼容的下一个2.6版本。
请注意,当前的GWT 2.6 RC仅在开发和编译时需要Java 7(对于GWT编译器,DevMode和GWTTestCase); 您可以将服务器端代码部署到Java 6 VM中。
GWT 2.6 “GA” will be compiled using Java 6 to overcome this bug. GWT 2.6 is supposed to still be compatible with Java 6; GWT 3.0 probably won't, at least for client-side code.
In the mean time, either move to Java 7 or wait for the next 2.6 release which is compatible with Java 6.
Note that the current GWT 2.6 RCs only require Java 7 at dev- and compile-time (for the GWT Compiler, DevMode and GWTTestCase); you can deploy your server-side code into a Java 6 VM.
更多推荐
发布评论