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

Element references are referencing the global elements type interface and not the element itself

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.5
    • None
    • JaxMe Core
    • None

    Description

      If the following schema is parsed to the generator:

      <xs:schema
      xmlns:xs="http://www.w3.org/2001/XMLSchema"
      xmlns="http://ws.apache.org/jaxme/test/jira/elementref"
      targetNamespace="http://ws.apache.org/jaxme/test/jira/elementref"
      elementFormDefault="qualified">
      <xs:element name="Dcr">
      <xs:complexType>
      <xs:attribute name="id"/>
      </xs:complexType>
      </xs:element>

      <xs:element name="DcrLoadResult">
      <xs:complexType>
      <xs:sequence>
      <xs:element ref="Dcr"/>
      </xs:sequence>
      </xs:complexType>
      </xs:element>
      </xs:schema>

      then the interface of DcrLoadResultType contains the following type signature:

      public org.apache.ws.jaxme.test.jira.elementref.DcrType getDcr();

      public void setDcr(org.apache.ws.jaxme.test.jira.elementref.DcrType pDcr);

      The signature should reference org.apache.ws.jaxme.test.jira.elementref.Dcr instead.

      Attachments

        Activity

          People

            jochen@apache.org Jochen Wiedmann
            jochen@apache.org Jochen Wiedmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: