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'.
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'.
- backport of
-
JDK-8009579 Xpathexception does not honor initcause()
-
- Closed
-