-
Enhancement
-
Resolution: Fixed
-
P3
-
17
-
b25
Add a MethodHandle combinator that takes a fixed set of MethodHandles, and returns a MethodHandle that can be used to switch over the set, given an index.
A fallback MethodHandle can be provided as well for cases where the index is out of bounds.
This is much like the tableswitch bytecode, but doesn't necessarily have to be implemented using that bytecode.
A fallback MethodHandle can be provided as well for cases where the index is out of bounds.
This is much like the tableswitch bytecode, but doesn't necessarily have to be implemented using that bytecode.
- csr for
-
JDK-8267267 Add a MethodHandle combinator that switches over a set of MethodHandles
- Closed
- relates to
-
JDK-8303704 Add a dynamically updating MethodHandle combinator that switches MethodHandles
- New