Uploaded image for project: 'JaxMe'
  1. JaxMe
  2. JAXME-102

No support for types of the same name in different namepaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 0.5
    • None
    • JaxMeXS
    • None

    Description

      JAXME produces invalid Java source files when the input schemas contain types with the same name in different namespaces.
      Example:

      First schema:
      <schema targetNamespace="http://a" xmlns="http://www.w3.org/2001/XMLSchema">
      <complexType abstract="true" name="T" />
      </schema>

      Second schema:
      <schema targetNamespace="http://b" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:a="http://a">
      <import namespace="http://a" schemaLocation="a.xsd" />
      <complexType abstract="true" name="T">
      <complexContent>
      <extension base="a:T" />
      </complexContent>
      </complexType>
      </schema>

      Generated java source file ObjectFactory.java contains:
      public a.T createT() throws javax.xml.bind.JAXBException

      { ... }
      public b.T createT() throws javax.xml.bind.JAXBException { ... }

      Attachments

        1. testdata.zip
          4 kB
          Christian Koppen

        Activity

          People

            Unassigned Unassigned
            ck1 Christian Koppen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: