On Sun, 23 Apr 2023 16:33:46 GMT, Chen Liang <li...@openjdk.org> wrote:
>> No, this is what List.copyOf supports. > > Alternatively, we can switch to SequencedCollection when it's integrated. [`MethodType.methodType(…)`] also doesn’t allow plain `Collection`s for the same reason, even though `List.copyOf` supports creation from a `Collection`. [`MethodType.methodType(…)`]: https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/lang/invoke/MethodType.html#methodType(java.lang.Class,java.util.List) ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/13599#discussion_r1174652830