-
Bug
-
Resolution: Fixed
-
P3
-
7
-
1.4
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2206351 | 7 | Joe Wang | P3 | Closed | Fixed | b134 |
There is wrong result in an JCK negative testing: attached schematas are valid, although it's expected the opposite.
For example the following shcematas are valid:
1---------------------------------------------
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:simpleType name="foo">
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="0">
<xsd:minInclusive value="10000000"/>
</xsd:minInclusive>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
2---------------------------------------------
<enumeration
id = ID
value = anySimpleType
{any attributes with non-schema namespace . . .}>
Content: (annotation?)
</enumeration>
It contradicts to the specification (http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/datatypes.html) that states:
1----------------------------------------------
<minInclusive
fixed = boolean : false
id = ID
value = anySimpleType
{any attributes with non-schema namespace . . .}>
Content: (annotation?)
</minInclusive>
and 2-------------------------------------------
<enumeration
id = ID
value = anySimpleType
{any attributes with non-schema namespace . . .}>
Content: (annotation?)
</enumeration>
For example the following shcematas are valid:
1---------------------------------------------
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:simpleType name="foo">
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="0">
<xsd:minInclusive value="10000000"/>
</xsd:minInclusive>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
2---------------------------------------------
<enumeration
id = ID
value = anySimpleType
{any attributes with non-schema namespace . . .}>
Content: (annotation?)
</enumeration>
It contradicts to the specification (http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/datatypes.html) that states:
1----------------------------------------------
<minInclusive
fixed = boolean : false
id = ID
value = anySimpleType
{any attributes with non-schema namespace . . .}>
Content: (annotation?)
</minInclusive>
and 2-------------------------------------------
<enumeration
id = ID
value = anySimpleType
{any attributes with non-schema namespace . . .}>
Content: (annotation?)
</enumeration>
- backported by
-
JDK-2206351 Schema parser allows some Element Information Items contain other element information item
- Closed
- relates to
-
JDK-6975493 Schema parser fails with NPE if ErrorHandler is set
- Resolved