Bootstrap arguments

Jeroen Frijters jeroen at sumatra.nl
Thu Aug 25 23:23:59 PDT 2011


Hi all,

I was surprised by this as well (from an implementers point of view), because the use of asType is an implementation detail. Normally when you call a method taking a boolean/byte/short/char you also load an int onto the stack, so why would this case be any different?

Not that it makes a great deal of difference, of course.

Regards,
Jeroen

> -----Original Message-----
> From: mlvm-dev-bounces at openjdk.java.net [mailto:mlvm-dev-
> bounces at openjdk.java.net] On Behalf Of Rémi Forax
> Sent: Thursday, August 25, 2011 20:06
> To: Da Vinci Machine Project
> Subject: Bootstrap arguments
> 
> Hi John, hi all,
> several people (2 actually :) ask me how to use a
> boolean/byte/short/char as a bootstrap argument.
> 
> As you know, you can't because you can't encode a constant
> boolean/byte/short/char in the constant pool but only an int and because
> asType() doesn't do narrowing primitive conversion.
> I think the doc of the overview of java.lang.invoke can be updated to
> add a line about that.
> 
> cheers,
> Rémi
> 
> _______________________________________________
> mlvm-dev mailing list
> mlvm-dev at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev


More information about the mlvm-dev mailing list