On Wed, 20 Apr 2022 20:08:01 GMT, Joe Wang <jo...@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. Marked as reviewed by naoto (Reviewer). ------------- PR: https://git.openjdk.java.net/jdk/pull/8323