On Mon, 24 Apr 2023 15:16:18 GMT, Jan Lahoda <jlah...@openjdk.org> wrote:
>> This is the first draft of a patch for JEP 440 and JEP 441. Changes included: >> >> - the pattern matching for switch and record patterns features are made >> final, together with updates to tests. >> - parenthesized patterns are removed. >> - qualified enum constants are supported for case labels. >> >> This change herein also includes removal record patterns in for each loop, >> which may be split into a separate PR in the future. > > Jan Lahoda has updated the pull request incrementally with one additional > commit since the last revision: > > Reflecting review changes. src/java.base/share/classes/java/lang/runtime/SwitchBootstraps.java line 219: > 217: * the method of the call site return the length of the {@code > labels} array. > 218: * <p> > 219: * The value of the {@code restart} index must be between {@code 0} > and This description is a bit ambiguous - not clear whether it's `0 < x < length`, or `0 <= x < length`. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/13074#discussion_r1176269340