RFR [11] (JAXP): 6857903: SAXException.initCause() does not correctly set Exception
Roger Riggs
Roger.Riggs at Oracle.com
Thu Dec 21 18:24:51 UTC 2017
Hi Aleksei,
In the case of creating SAXException and then calling initCause() it
looks like
the value returned by getException() and getCause() may differ.
The past behavior and the descriptions of those two methods are the same.
Is the change intentional?
If not, you may need to override initCause() to update the 'exception'
field.
Roger
On 12/21/2017 12:27 PM, Aleks Efimov wrote:
> Hello,
>
> Please, help to review the fix for jaxp bug that fixes SAXException to
> correctly set exception cause with 'setCause' method:
> http://cr.openjdk.java.net/~aefimov/6857903/dev/00/
> I've tried to keep the fix miminal with respect to serial form of this
> API class, i.e. kept private 'exception' field.
>
> The new test case was added to IssueTracker56Test unit test. Testing
> showed no related JCK/JTREG failures.
>
> With Best Regards,
> Aleksei
>
>
More information about the core-libs-dev
mailing list