JDK-8222743 : Xerces 2.12.0: DOM Implementation
  • Type: Sub-task
  • Component: xml
  • Sub-Component: jaxp
  • Affected Version: 11,13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-04-18
  • Updated: 2020-01-29
  • Resolved: 2019-04-25
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 b19Fixed
Related Reports
Relates :  
Relates :  
Description
This update focuses on the xerces/dom package. Starting with the following bugs fixed in 2.12.0:

XERCESJ-1667 -- ClassLoader memory leak via stacktrace in pre-created DOMNormalizer.abort exception
XERCESJ-1522 - Trailing spaces in DOMMessages.properties
XERCESJ-1501 - Namespace declarations not always pruned from the DOM when the "namespace-declarations" parameter is set to false.
XERCESJ-1582 - Node prefix/namespace query methods throw an NPE on a document without a document element
XERCESJ-1421 - Temporary inconsistent data inside Xerces2-J when removing a first child of a node.


Updates the following classes:
xerces/internal/dom/AttrImpl.java
xerces/internal/dom/AttrNSImpl.java
xerces/internal/dom/ChildNode.java
xerces/internal/dom/CoreDOMImplementationImpl.java
xerces/internal/dom/DOMConfigurationImpl.java
xerces/internal/dom/DOMNormalizer.java
xerces/internal/dom/DeferredDocumentImpl.java
xerces/internal/dom/DocumentTypeImpl.java
xerces/internal/dom/ElementImpl.java
xerces/internal/dom/ElementNSImpl.java
xerces/internal/dom/NamedNodeMapImpl.java
xerces/internal/dom/NodeImpl.java
xerces/internal/dom/PSVIDOMImplementationImpl.java
xerces/internal/dom/ParentNode.java
xerces/internal/dom/TextImpl.java

The update covers bug fixes in 2.12.0 and previous versions as listed below, as well as minor changes without bug ids.
XERCESJ-1394 Node.lookupNamespaceURI() sometimes returns an empty string instead of null.
XERCESJ-1248 Static textNode on AttrImpl breaks thread-safety, mutations of independant documents from within a mutation listener, and introduces potential memory leaks
XERCESJ-1125 Small enhancements and tweaks for the org.apache.xerces.dom package
XERCESJ-1133 Need increase in visibility for HTMLElementImpl constructor

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/dcb78d2f07e5
22-08-2019

XERCESJ-1667 -- the JDK had a different fix in JDK-8146961. XERCESJ-1522 -- I will skip this trivial change for removing trailing spaces in DOMMessages.properties. Not worth another i10n bundle drop.
18-04-2019