RFR (JAXB): 8159240: XSOM parser incorrectly processes type names with whitespaces
Aleks Efimov
aleksej.efimov at oracle.com
Thu Aug 25 12:33:32 UTC 2016
Hello,
Please, help to review the JDK9 changes in JAXB XSOM parser that solves
issue [0] with incorrectly collapsed namespaces within schema types
names definitions/usages:
http://cr.openjdk.java.net/~aefimov/8159240/9/00/
Problem description:
The XMLSchema defines that whitespaces should be collapsed for type
names and different attribute values that can contain type names.
Examples are:
- 'name' attribute value for 'xsd:simpleType', 'xsd:complexType',
'xsd:attribute'
- 'type' attribute value for 'xsd:attribute'
- 'base' attribute value for 'xsd:restriction'
Almost all type values for such attributes are inherited from NCName or
QName schema types. Both types are defined with whiteSpace restriction
set to "collapse" [1].
The XSOM parser state machine was reversed engineered and all NCName and
QName typed values are now collapsed to match the schema definitions.
New regression test was executed alongside to JTREG and JCK tests - no
failures.
With Best Regards,
Aleksej
[0] https://bugs.openjdk.java.net/browse/JDK-8159240
[1] https://www.w3.org/2001/XMLSchema.xsd
[2] XSOM parser page: https://xsom.java.net/
More information about the core-libs-dev
mailing list