Skip to content

Commit

Permalink
Merge pull request #722 from ThanHenderson/18293
Browse files Browse the repository at this point in the history
Conform to spec for MethodHandles::loop's with void return types
  • Loading branch information
babsingh authored Oct 28, 2023
2 parents 45b9d06 + 7e14c9a commit d4a63e5
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* ===========================================================================
* (c) Copyright IBM Corp. 2023, 2023 All Rights Reserved
* ===========================================================================
*/

package java.lang.invoke;

Expand Down Expand Up @@ -4896,7 +4901,7 @@ public static MethodHandle loop(MethodHandle[]... clauses) {
pred.set(i, dropArguments0(constant(boolean.class, true), 0, commonParameterSequence));
}
if (fini.get(i) == null) {
fini.set(i, empty(methodType(t, commonParameterSequence)));
fini.set(i, empty(methodType(loopReturnType, commonParameterSequence)));
}
}

Expand Down

0 comments on commit d4a63e5

Please sign in to comment.