java - xmlBeans-5.2.1.jar @Override error due to a class named Override - Stack Overflow

I am trying to compile xsd into corresponding Java files through xmlbeans-5.2.1 using below taskDef<

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742395955a4435949.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信