RFR: 8284548: Invalid XPath expression causes StringIndexOutOfBoundsException [v2]

Lance Andersen lancea at openjdk.java.net
Wed Apr 20 21:58:29 UTC 2022


On Wed, 20 Apr 2022 21:53:46 GMT, Joe Wang <joehw at openjdk.org> wrote:

>> Patch note:
>> 
>> A previous patch had a bug that missed the boundary check, that will cause StringIndexOutOfBoundsException to be thrown instead of XPathExpressionException as expected.
>>     
>> Fix: the fix is to check the boundaries of the parameter "index". Objects.checkIndex is removed as it's redundant.
>
> Joe Wang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   add the test

Marked as reviewed by lancea (Reviewer).

-------------

PR: https://git.openjdk.java.net/jdk/pull/8323


More information about the core-libs-dev mailing list