MethodHandle.bindTo() only for reference types?
Aleksey Shipilev
aleksey.shipilev at oracle.com
Thu Jul 26 02:50:10 PDT 2012
Hi John,
On 07/24/2012 11:02 PM, John Rose wrote:
> On Jul 24, 2012, at 11:09 AM, Attila Szegedi wrote:
> MethodHandle.bind is a less-general primitive. The general API is
> insertArguments.
>
> Good 292 support for primitives requires a signature-polymorphic API.
>
> Therefore, we have been considering adding something like this, to fill
> functionality not covered by bind and insertArguments:
Thanks for thinking forward on this. But let's get back to the original
issue: inconsistent API between MH.bindTo() and MHs.insertArguments().
If the latter boxes primitive values, why not to allow the former to do
the same? Albeit it is not "a good support for primitives", but this is
the consistency improvement.
Thanks,
Aleksey.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
Url : http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20120726/53d211a6/signature.asc
More information about the mlvm-dev
mailing list