-
Bug
-
Resolution: Fixed
-
P3
-
7
-
1.4
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2205114 | 7 | Joe Wang | P2 | Closed | Fixed | b126 |
The specification (http://www.w3.org/TR/xmlschema-2) states:
[Definition:]
1) byte is derived from short
2) short is derived from int and so on ....
that is derived from decimal by fixing the value of fractionDigits to be 0 and disallowing the trailing decimal point.
The piece of code that compiles attached "negative" schemas from W3C test suite
----------------
SchemaFactory sf = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI);
sf.setErrorHandler(errorCollector);
Schema schema = sf.newSchema( new File("byte_fractionDigits004.xsd"));
----------------
does not throw SAXException as expected.
[Definition:]
1) byte is derived from short
2) short is derived from int and so on ....
that is derived from decimal by fixing the value of fractionDigits to be 0 and disallowing the trailing decimal point.
The piece of code that compiles attached "negative" schemas from W3C test suite
----------------
SchemaFactory sf = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI);
sf.setErrorHandler(errorCollector);
Schema schema = sf.newSchema( new File("byte_fractionDigits004.xsd"));
----------------
does not throw SAXException as expected.
- backported by
-
JDK-2205114 Schema compiler allows to use value of fractionDigits that is more than allowed by base type
- Closed
- relates to
-
JDK-6948474 XSD: fractionDigits cannot be other than 0 for byte, short and etc.(i.e. a whole number)
- Closed