Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-10996

Declaration of lists in XSD should return same java implementation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Bug
    • Affects Version/s: 5.7-SNAPSHOT
    • Fix Version/s: None
    • Component/s: Core

      Description

      We can declare lists of string with several manner in nuxeo-core.

      <xs:simpleType name="stringList1">
      <xs:list itemType="xs:string"/>
      </xs:simpleType>

      <xs:complexType name="stringList2">
      <xs:sequence>
      <xs:element name="item" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
      </xs:complexType>

      But at java level, it returns differents types java.lang.String[] for the first on and java.util.ArrayList for the second. It should return for all: java.util.ArrayList.

      A failing test is attached to show the problem.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: