Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
GWT和getClass().getPackage()_Gwt - Fatal编程技术网

GWT和getClass().getPackage()

GWT和getClass().getPackage(),gwt,Gwt,当我尝试在FooterViewImpl类中使用getClass.getPackage().getImplementationVersion()在网页上显示项目的版本号(来自pom.xml文件)时,在运行时遇到此错误。我认为错误来自gwt java到javascript编译器 [ERROR] [OnlineGlom] - Line 52: The method getPackage() is undefined for the type Class<capture#1-of ? extend

当我尝试在FooterViewImpl类中使用getClass.getPackage().getImplementationVersion()在网页上显示项目的版本号(来自pom.xml文件)时,在运行时遇到此错误。我认为错误来自gwt java到javascript编译器

[ERROR] [OnlineGlom] - Line 52: The method getPackage() is undefined for the type Class<capture#1-of ? extends FooterViewImpl>

java.lang.RuntimeException: Deferred binding failed for 'org.glom.web.client.ClientFactory' (did you forget to inherit a required module?)
[ERROR][OnlineGlom]-第52行:类型类的方法getPackage()未定义
java.lang.RuntimeException:org.glom.web.client.ClientFactory的延迟绑定失败(是否忘记继承所需的模块?)
我应该期待这个工作吗?


GWT未模拟
getPackage()
。GWT的座右铭是在编译时而不是运行时发挥最大作用。

谢谢。对于如何在编译时从pom.xml文件中获取这些信息,您有什么建议吗?请从中调用getImplementationVersion?