JDK-8009581 : Xpathexception does not honor initcause()
  • Type: Backport
  • Backport of: JDK-8009579
  • Component: xml
  • Sub-Component: jaxp
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-03-06
  • Updated: 2013-10-22
  • Resolved: 2013-06-06
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 6 JDK 8
6u60Fixed 8 b96Fixed
Description
There is an erroneous behavior in 'initCause' method of XPathException class:
If XPathException is created with 'XPathException(String )' constructor and then the cause is initialized with 'initCause' method. And after this a cause is retrieved by 'getCause()' method: this call returns incorrect cause = 'null', but It should return the same cause as was used in 'initCause'.  
Comments
related test, test/javax/xml/jaxp/XPath/8009579/XPathExceptionInitCause.java, pass in jdk8 b112
22-10-2013