[jira] [Commented] (XMLBEANS-553) xmlbeans 4.0.0 generated code from xsd incompatible with xmlbeans 4.0.0

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (XMLBEANS-553) xmlbeans 4.0.0 generated code from xsd incompatible with xmlbeans 4.0.0

PJ Fanning (Jira)

    [ https://issues.apache.org/jira/browse/XMLBEANS-553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17279031#comment-17279031 ]

wma commented on XMLBEANS-553:
------------------------------

[~pj.fanning]
This issue is not the maven plugin. I'm just using it to use the generation that xmlbeans provides.
In the pom file you have the dependency on xmlbeans, you can change the version to 3.1.0 first, do a mvn clean install and there is no issue.
Do it again but first change to version 4.0.0 and the generated source code generated by xmlbeans (not the plugin) contains the issue

> xmlbeans 4.0.0 generated code from xsd incompatible with xmlbeans 4.0.0
> -----------------------------------------------------------------------
>
>                 Key: XMLBEANS-553
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-553
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: Version 4.0.0
>            Reporter: wma
>            Assignee: Andreas Beeker
>            Priority: Critical
>              Labels: code-generation
>         Attachments: xmlbeans-broken.zip
>
>
> When trying to update our project to xmlbeans 4.0.0, we discovered xmlbeans generates invalid source code.
> The generated code contains references to org.apache.xmlbeans.xml.stream.XMLInputStream which was deleted in xmlbeans 4.0.0
> Attached a simple maven project to simulate the situation. Using xmlbeans 3.1.0, there is no issue, updating to 4.0.0 and you have the problem.
>  
> {quote}error: cannot find symbol
>  public static org.broken.xmlbeans.xmlBeansBrokenSchema.xmlbeans.XmlBean parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
>  ^
>  symbol: class XMLStreamException
>  location: package org.apache.xmlbeans.xml.stream
> {quote}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]