Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-553

xmlbeans 4.0.0 generated code from xsd incompatible with xmlbeans 4.0.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Invalid
    • Version 4.0.0
    • None
    • Compiler

    Description

      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.

       

      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

       

      Attachments

        Issue Links

          Activity

            People

              kiwiwings Andreas Beeker
              wma wma
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: