Request for reviews (M): 6939134: JSR 292 adjustments to method handle invocation

Rémi Forax forax at univ-mlv.fr
Wed Mar 31 16:24:10 PDT 2010


Le 01/04/2010 01:12, Neal Gafter a écrit :
> I continue to object to language extensions of this kind (i.e. 
> nontrivial additions to the Java programming language that do not 
> benefit Java programmers).

These extensions benefit to Java programmers.
You can, by example, implement the visitor pattern on top of this
without the well known limitations of the interface based approach.

>
> In any case, you did not provide a link for jdk changes.
>
> Cheers,
> Neal

Rémi

>
> On Wed, Mar 31, 2010 at 4:02 PM, John Rose <john.r.rose at oracle.com 
> <mailto:john.r.rose at oracle.com>> wrote:
>
>     http://cr.openjdk.java.net/~jrose/6939134/lt-webrev.00
>     <http://cr.openjdk.java.net/%7Ejrose/6939134/lt-webrev.00>
>
>     This review request is specifically for JVM changes.  They will be
>     coordinated with the following JDK and javac changes:
>     http://cr.openjdk.java.net/~jrose/6939134/hs-webrev.00/
>     <http://cr.openjdk.java.net/%7Ejrose/6939134/hs-webrev.00/>
>     http://cr.openjdk.java.net/~jrose/6939134/hs-webrev.00/
>     <http://cr.openjdk.java.net/%7Ejrose/6939134/hs-webrev.00/>
>
>     Details:
>
>     6939134: JSR 292 adjustments to method handle invocation
>     Summary: split MethodHandle.invoke into invokeExact and invokeGeneric
>     Mark the special signature-polymorpic methods and classes with
>     @PolymorphicSignature.
>     Reviewed-by: ?
>
>     The JSR 292 EG has decided to split MethodHandle.invoke into two
>     methods, invokeExact and invokeGeneric.  Adjust javac so that it uses
>     a marker annotation (@PolymorphicSignature) to recognize which methods
>     are signature-polymorphic.  Remove hard-coded recognition of
>     MethodHandle.invoke and InvokeDynamic.
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20100401/80dbaad9/attachment.html 


More information about the compiler-dev mailing list