On Thu, 17 Sep 2026 06:39:50 GMT, ExE Boss <[email protected]> wrote: >> Jorn Vernee has updated the pull request incrementally with three additional >> commits since the last revision: >> >> - Fix typo >> - Add lambdaform shape comment >> - Add LF interpreter test + var args collector test + use asFixedArity > > src/java.base/share/classes/java/lang/invoke/MethodHandles.java line 7726: > >> 7724: public static MethodHandle synchronize(MethodHandle body) { >> 7725: Objects.requireNonNull(body); >> 7726: return MethodHandleImpl.makeSynchronize(body.asFixedArity()); > > Should the returned handle be made variable arity when `body` has variable > arity?
I opted not to do this. A user can pretty easily use `asVarargsCollector` on the result if they want ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/32817#discussion_r4036730141
