admin管理员组文章数量:1336143
I am trying to compile xsd into corresponding Java files through xmlbeans-5.2.1 using below taskDef
<taskdef name="xmlbean"
classname=".apache.xmlbeans.impl.tool.XMLBean"
classpath="path/to/xmlbeans.jar" />
However because there is an Override class defined in few of the xsd schemas, I am keep getting below error during compilation
error: incompatible types: Override cannot be converted to Annotation
[xmlbean] @Override
I cannot make changes to xsd schemas as it is given from someone
It is mistaking that source of annotation is from the class generated by the schema instead of java.lang.Override
Does anyone know a fix to above?
Successful compilation
本文标签: javaxmlBeans521jar Override error due to a class named OverrideStack Overflow
版权声明:本文标题:java - xmlBeans-5.2.1.jar @Override error due to a class named Override - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742395955a2466925.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论