我在我的实体中使用 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>
有解决方案吗?