On Thu, 17 Sep 2026 13:51:57 GMT, Chen Liang <[email protected]> wrote:

>> I opted not to do this. A user can pretty easily use `asVarargsCollector` on 
>> the result if they want
>
> Most other methods that don't retain variable-arity have this note in the 
> spec:
> 
>      * <em>Note:</em> The resulting adapter is never a {@linkplain 
> MethodHandle#asVarargsCollector
>      * variable-arity method handle}, even if the original target method 
> handle was.

I've added this note to the javadoc as well, thanks

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

PR Review Comment: https://git.openjdk.org/jdk/pull/32817#discussion_r4046628563

Reply via email to