[英]GWT: how do I include static nested classes in module.xml files?
I have an interface class from Project-A which contains a static class. 我有一个Project-A接口类,其中包含一个静态类。
I want to import this class to my gwt Project-B, so I wrote a module.xml file to include the interface class in Project-A and tried to use it. 我想将该类导入到我的gwt Project-B中,所以我编写了一个module.xml文件以在Project-A中包含接口类,并尝试使用它。
Here is how it looks like: 看起来是这样的:
<module>
<inherits name='com.google.gwt.user.User'/>
<source path="">
<include name="IDefinition.java"/>
<include name="metadata/input/IInputMetaDataProvider.java"/>
<include name="util/IXMLTagHelper.java"/>
<include name="util/XMLTagHelper.java"/>
</source>
</module>
Other classes are imported without any problem, but the class inside IInputMetaDataProvider is not imported. 导入其他类没有任何问题,但是IInputMetaDataProvider内部的类未导入。 Here is the error:
这是错误:
[ERROR] [onboardingtool] - com.xxx.xxx.xxx.metadata.input.IInputMetaDataProvider.EnumeratedDomainInfo cannot be resolved to a type
Please help, thanks 请帮忙,谢谢
Turns out it was caused by other issues. 原来是其他问题引起的。 The interface imported some other classes which I did not put into module.xml.
该接口导入了其他一些我未放入module.xml中的类。 Once I included them, it works like a charm.
一旦包含它们,它就会像魅力一样发挥作用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.