-
Bug
-
Resolution: Won't Fix
-
P3
-
7
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2206347 | 7u2 | Joe Wang | P3 | Closed | Won't Fix |
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'
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'
- backported by
-
JDK-2206347 The values of minOccurs and maxOccurs attributes are limited to the value 2147483647.
- Closed
- duplicates
-
JDK-4990915 XMLSchema: large values of maxOccurs are not supported
- Closed