Non static bootstrap method
Matthieu Riou
matthieu at offthelip.org
Mon Feb 21 19:20:32 PST 2011
That answers my question, thanks :) And by the way thanks for all your work
on mlvm.
On Mon, Feb 21, 2011 at 6:18 PM, John Rose <john.r.rose at oracle.com> wrote:
> This is worth a clarification: The only meaningful bootstrap methods will
> be static methods and constructors for subclasses of CallSite. I will add a
> note to the effect into the javadoc.
>
> Using a virtual method of class C as a BSM means that you expect the first
> stacked argument to the BSM to be the receiver, of type C. Unless you were
> to choose a virtual on MethodHandles.Lookup that will serve your purpose
> (and there is nothing that will return a CallSite), there's no way that any
> of the stacked arguments will act as the method's receiver.
>
> -- John
>
> _______________________________________________
> mlvm-dev mailing list
> mlvm-dev at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20110221/d79c2b01/attachment.html
More information about the mlvm-dev
mailing list