最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin0浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论