hg: lambda/lambda/langtools: Handle non-static method references from static context. More specifically, if f is an instance method of Z whose signature is A, B->C, then #obj.f is of type A, B->C and #Z.f is of type Z, A, B->C.

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Wed Aug 4 07:56:43 PDT 2010


On 04/08/10 15:39, Rémi Forax wrote:
> Le 04/08/2010 16:13, maurizio.cimadamore at oracle.com a écrit :
>    
>> Changeset: 443eb1d3b96c
>> Author:    mcimadamore
>> Date:      2010-08-04 15:10 +0100
>> URL:       http://hg.openjdk.java.net/lambda/lambda/langtools/rev/443eb1d3b96c
>>
>> Handle non-static method references from static context. More specifically, if f is an instance method of Z whose signature is A,B->C, then #obj.f is of type A,B->C and #Z.f is of type Z,A,B->C.
>>
>> ! src/share/classes/com/sun/tools/javac/comp/Attr.java
>> ! src/share/classes/com/sun/tools/javac/parser/JavacParser.java
>> ! test/tools/javac/lambda/MethodReference05.java
>> - test/tools/javac/lambda/MethodReference05.out
>> + test/tools/javac/lambda/MethodReference07.java
>> + test/tools/javac/lambda/MethodReference08.java
>> + test/tools/javac/lambda/MethodReference08.out
>> + test/tools/javac/lambda/MethodReference09.java
>> + test/tools/javac/lambda/MethodReference09.out
>>
>>
>>
>>      
> Hi Maurizio,
> sorry for being nit-pickky but I think makeMethodReferenceType should be
> private.
>
> Rémi
>
>    
Thanks Remi,
I agree it should be private... I will correct it in the next sweep.

Maurizio


More information about the lambda-dev mailing list