hg: mlvm/mlvm/jdk: meth: add proxy maker for closures

Rémi Forax forax at univ-mlv.fr
Tue May 18 00:59:32 PDT 2010


Le 18/05/2010 09:45, Charles Oliver Nutter a écrit :
> Well this one looks interesting. I'm generating several thousand such
> abstract adapters; this would allow me to potentially use my same
> abstract supertype for them all with either indy or non-indy backing
> them up...
>    

It's only useful when bridging JRuby and Java,
by example when you want to call a method that take a
java.util.Comparator from JRuby,
otherwise plain old method handle avoid to create such proxy.

You generate adapters as a workaroud of the signature polymorphism
problem. java.dyn.MethodHandle is the solution.

Rémi

> On Tue, May 18, 2010 at 7:35 AM,<john.r.rose at oracle.com>  wrote:
>    
>> Changeset: e2709716a4ea
>> Author:    jrose
>> Date:      2010-05-18 00:35 -0700
>> URL:       http://hg.openjdk.java.net/mlvm/mlvm/jdk/rev/e2709716a4ea
>>
>> meth: add proxy maker for closures
>>
>> + meth-proxy-6953246.patch
>> ! series
>>
>> _______________________________________________
>> mlvm-dev mailing list
>> mlvm-dev at openjdk.java.net
>> http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
>>
>>      
> _______________________________________________
> 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