RFR: 8306698: Add overloads to MethodTypeDesc::of
ExE Boss
duke at openjdk.org
Sun Apr 23 21:12:41 UTC 2023
On Sun, 23 Apr 2023 16:33:46 GMT, Chen Liang <liach at 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
More information about the core-libs-dev
mailing list