RFR: 8081392: getNodeValue should return NULL value for Element nodes
aleksej.efimov at oracle.com
Thu May 28 15:33:59 UTC 2015
Please, review JDK9 fix  for a bug  in 'getNodeValue' JAXP function:
According to w3c  getNodeValue should return 'null' value for
Element nodes. This behavior was changed by JDK-8032908  fix - in
current implementation the node content is returned.
To address this issue the JDK-8032908 fix was reverted and
'getTextContent' function was modified properly to address issue
reported by JDK-8032908.
JDK-8032908 test was modified to test that 'getNodeValue' returns 'null'
for Element nodes.
DocumentExtFunc test was modified to use 'getTextContent' instead of
'getNodeValue' for node content retrival. No related test failures on
local and JPRT builds were observed.
With Best Regards,
More information about the core-libs-dev