Details
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8034562 | 7u65 | Joe Wang | P3 | Resolved | Fixed | b01 |
JDK-8026829 | 7u60 | Joe Wang | P3 | Closed | Fixed | b01 |
Description
Attached schema (anyURI_b006.xsd) holds invalid instance of xs:anyURI. The piece of code that compiles it
----------------
SchemaFactory sf = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI);
sf.setErrorHandler(errorCollector);
Schema schema = sf.newSchema( new File("anyURI_b006.xsd"));
----------------
does not throw SAXException:
-----------------
ERROR] enumeration-valid-restriction: Enumeration value '\\' is not in the value space of the base type, anyURI.
-----------------
as expected.
See also the bug http://www.w3.org/Bugs/Public/show_bug.cgi?id=4048
----------------
SchemaFactory sf = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI);
sf.setErrorHandler(errorCollector);
Schema schema = sf.newSchema( new File("anyURI_b006.xsd"));
----------------
does not throw SAXException:
-----------------
ERROR] enumeration-valid-restriction: Enumeration value '\\' is not in the value space of the base type, anyURI.
-----------------
as expected.
See also the bug http://www.w3.org/Bugs/Public/show_bug.cgi?id=4048
Attachments
Issue Links
- backported by
-
JDK-8034562 SchemaFactory does not catch enum. value that is not in the value space of the base type, anyURI.
- Resolved
-
JDK-8026829 SchemaFactory does not catch enum. value that is not in the value space of the base type, anyURI.
- Closed