JDK-8222991 : Xerces 2.12.0: Validation
  • Type: Sub-task
  • Component: xml
  • Sub-Component: jaxp
  • Affected Version: 11,13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-04-25
  • Updated: 2020-01-29
  • Resolved: 2019-05-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13
11.0.5-oracleFixed 13 b21Fixed
Related Reports
Relates :  
Relates :  
Description
Update the Validation implementation starting with the fixes for the following issues:

XERCESJ-1592 - schema validation incorrectly treating single character outside of BMP as two characters
XERCESJ-1646 - Report warning when the maxLength limit is exceeded in an enumeration

XERCESJ-1592 introduced a system property called org.apache.xerces.impl.dv.xs.useCodePointCountForStringLength that may be added to the JDK as is so that the feature is supported.

Other than the above, we may also merge relevant minor changes.

Comments
Fix Request (jdk11u) Requesting a jdk11u backport approval of this enhancement for Oracle feature parity. The following changeset applies cleanly to jdk11u-dev and passes tier1 and jaxp_all tests: http://hg.openjdk.java.net/jdk/jdk/rev/81607d4919c0
22-08-2019

Note that the property name for useCodePointCountForStringLength will be the following in the JDK (with the JDK package name): com.sun.org.apache.xerces.internal.impl.dv.xs.useCodePointCountForStringLength
29-04-2019