RFR: 8312976: MatchResult produces StringIndexOutOfBoundsException for groups outside match [v4]

Raffaello Giulietti rgiulietti at openjdk.org
Mon Jul 31 18:38:30 UTC 2023


> Fixes a bug showing up after [JDK-8132995](https://bugs.openjdk.org/browse/JDK-8132995) when there are capturing groups outside the match.

Raffaello Giulietti has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains six additional commits since the last revision:

 - Merged with mainline.
 - Merge branch 'master' into 8312976
 - Refactored recent tests as JUnit parametrized test.
 - Added a test with negatvie lookbehind.
 - Added test with a lookahead containing a back reference.
 - 8312976: MatchResult produces StringIndexOutOfBoundsException for groups outside match

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/15053/files
  - new: https://git.openjdk.org/jdk/pull/15053/files/49fb4f14..f117745d

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=15053&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15053&range=02-03

  Stats: 41398 lines in 860 files changed: 23399 ins; 14058 del; 3941 mod
  Patch: https://git.openjdk.org/jdk/pull/15053.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15053/head:pull/15053

PR: https://git.openjdk.org/jdk/pull/15053


More information about the core-libs-dev mailing list