On Wed, 24 Aug 2022 15:48:38 GMT, Raffaello Giulietti <d...@openjdk.org> wrote:
> Add support for named groups to java.util.regex.MatchResult src/java.base/share/classes/java/util/regex/MatchResult.java line 274: > 272: * might be preferable for other reasons. > 273: * > 274: * @since 20 Should the method declare that it throws `UnsupportedOperationsExceptions`? Because that is what will happen if `namedGroups` is not overridden/implemented. Same comment for the other new methods. ------------- PR: https://git.openjdk.org/jdk/pull/10000