hg: lambda/lambda/langtools: Bug fixes:

maurizio.cimadamore at oracle.com maurizio.cimadamore at oracle.com
Thu Jun 2 05:23:51 PDT 2011


Changeset: 0d7682f13649
Author:    mcimadamore
Date:      2011-06-02 13:22 +0100
URL:       http://hg.openjdk.java.net/lambda/lambda/langtools/rev/0d7682f13649

Bug fixes:
*) void-compatible lambda expression (that completes normally) should not be compatible with SAM descriptor whose return type is other than void/java.lang.Void
*) lambda parameter inference: candidates with incompatible SAM descriptor args length should be removed from the set of applicable methods

! src/share/classes/com/sun/tools/javac/comp/Attr.java
+ test/tools/javac/lambda/TargetType21.java
+ test/tools/javac/lambda/TargetType21.out
+ test/tools/javac/lambda/TargetType22.java
+ test/tools/javac/lambda/TargetType22.out
+ test/tools/javac/lambda/TargetType23.java
+ test/tools/javac/lambda/TargetType23.out



More information about the lambda-dev mailing list