RFR 8009581: Xpathexception does not honor initcause()
Jason Mehrens
jason_mehrens at hotmail.com
Wed May 29 02:54:08 UTC 2013
>> You can still generate a ISE inside readObject by performing "new XPathException(new Exception()).initCause(null)" in the old code and then reading that in the new patch. In the new code that line would fail fast.
>
> So what should the result of this be given that the original exception
> has an inconsistent state (two 'causes')?
>
Maybe catch ISE and throw InvalidObjectException or StreamCorruptedException?
Jason
More information about the core-libs-dev
mailing list