RFR 8016281: The SAM method should be passed to the metafactory as a MethodType not a MethodHandle

Robert Field robert.field at oracle.com
Wed Jul 10 23:31:35 PDT 2013


In the *Metafactory.java  cases it is a full method type. But in the 
SerializedLambda.java case it is a just the return type.  The name is 
wrong in that case.  Changed to functionalInterfaceClass, and method to 
getFunctionalInterfaceClass.

Thanks Rémi.

-Robert

On 07/07/13 11:57, Remi Forax wrote:
> On 07/07/2013 07:49 PM, Robert Field wrote:
>> Please review the fix for CR:
>>
>> http://bugs.sun.com/view_bug.do?bug_id=8016281
>>
>> See also duplicate bug for more motivation:
>>
>> http://bugs.sun.com/view_bug.do?bug_id=8019635
>>
>> Webrev:
>>
>>            http://cr.openjdk.java.net/~rfield/8016281/
>>
>> Note this includes metafactory (JDK) and the corresponding javac
>> (langtools) changes.
>>
>>
>>
> Hi Robert,
> I like this cleanup, patch is Ok for me,
> I just think that "functionalInterfaceType" is a better name than
> "invokedType"
> especially when "invokedType" is used as a name of one of the component
> of the serialized form.
>
> cheers,
> Rémi
>
>



More information about the lambda-dev mailing list