Virtual extension methods -- second draft

Brian Goetz brian.goetz at oracle.com
Sat Jun 12 12:34:31 PDT 2010


>>> Taking the section more literally, it appears to be discussing runtime
>>> dispatch of an invokeinterface invocation where the receiver type in
>>> the constant pool is D.
>>>
>> Or an invokedynamic.
>
> There is only one problem with invokedynamic.
> Invokedynamic requires a bootstrap method and the current spec says
> that there is only one bootstrap method for the whole class.
> If defender methods are implemented using invokedynamic,
> developers will not be able to specify their own a bootstrap method.

I was afraid you were going to say that.

Is there no way to specify a bootstrap method on a per-call-site basis?


More information about the lambda-dev mailing list