Lambda and JSR 292 method handle
Mark Mahieu
markmahieu at googlemail.com
Thu Dec 17 16:35:41 PST 2009
On 18 Dec 2009, at 01:27, Rémi Forax wrote:
> Le 18/12/2009 01:09, Mark Mahieu a écrit :
>>
>>
>> On 17 Dec 2009, at 15:23, Rémi Forax wrote:
>>>
>>> 3) Who is in charge of creating interfaces representing function types ?
>>> Currently the BGGA compiler creates these interfaces when needed at
>>> compile time.
>>> This solution is not feasible if you have jars or modules,
>>> it generates double definitions and conflicts.
>>> I haven't seen any serious proposal to resolve that problem.
>>>
>>
>> I believe the idea was that, in a production-quality implementation, those interfaces would be synthesised when needed by the runtime.
>>
>> Mark
>>
>>
>
> This will require to modify the VM or is there a trick ?
>
> Rémi
From http://www.javac.info/issues-v05.html :
"The system class loader should dynamically generate function type interfaces.
The interfaces corresponding to function types should be generated on demand by the bootstrap class loader, so they can be shared among all user code. For the prototype, we may have javac generate these interfaces so prototype-generated code can run on stock (JDK5-6) VMs."
Mark
More information about the lambda-dev
mailing list