我在我的实体中使用javax.xml.bind进行xml序列化,并且直到gwt 2.8.1都可以正常编译,但是在2.8.2版本中,编译器在诸如javax.xml.bind.annotation.XmlRootElement之类的注释处失败消息,没有可用于javax.xml.bind的源代码。
[ERROR] Hint: Your source appears not to live underneath a subpackage called 'client'; no problem, but you'll need to use the <source> directive in your module to make it accessible
...
[ERROR] Line 3: The import javax.xml.bind cannot be resolved
[ERROR] Line 11: XmlRootElement cannot be resolved to a type
我在gwt版本说明中没有发现与此相关的任何内容 (http://www.gwtproject.org/release-notes.html#Release_Notes_2_8_2)
我正在使用JDK 8:
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/Java SE 8 [1.8.0_172]">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
有解决方案吗?