Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6974511

The values of minOccurs and maxOccurs attributes are limited to the value 2147483647.

XMLWordPrintable

        The values of minOccurs and maxOccurs attributes are limited to the value 2147483647 although according to the spec:

          maxOccurs = (nonNegativeInteger | unbounded) : 1
          minOccurs = nonNegativeInteger : 1
          and nonNegativeInteger <= +123456789012345678901234567890.

        It contradicts the specification: XML Schema Part 1: Structures Second Edition

        Attached JCK test tast fails due this limitation with exception:

        SAX error: file:/analysis/addB099.xsd(21,78): s4s-att-invalid-value: Invalid attribute value for 'minOccurs' in element 'group'. Recorded reason: cvc-datatype-valid.1.2.1: '12678967543233' is not a valid value for 'nonNegativeInteger'.

        Also the recorder reason looks weird: '12678967543233' is not a valid value for 'nonNegativeInteger'

              joehw Joe Wang
              lkuskov Leonid Kuskov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: