On Fri, 24 Feb 2023 16:35:25 GMT, Raffaello Giulietti <rgiulie...@openjdk.org> wrote:
>> Personally I would expect `string.substring(fromIndex, toIndex).indexOf(ch)` >> to behave isomorphically to `string.indexOf(ch, fromIndex, toIndex)` > > Then you would also expect `string.substring(fromIndex).indexOf(ch)` to > behave isomorphically to `string.indexOf(ch, fromIndex)` in current releases, > right? > It does not. (I guess you are referring to the fact that `substring()` can throw.) ------------- PR: https://git.openjdk.org/jdk/pull/12600