hg: lambda/lambda/langtools: Overhaul of lambda vs. method reference compatibility check (original) (raw)

maurizio.cimadamore at oracle.com maurizio.cimadamore at oracle.com
Thu Apr 12 09:21:53 PDT 2012


Changeset: d9b285fb8213 Author: mcimadamore Date: 2012-04-12 17:21 +0100 URL: http://hg.openjdk.java.net/lambda/lambda/langtools/rev/d9b285fb8213

Overhaul of lambda vs. method reference compatibility check *) thrown types in lambda body should not affect set of applicable methods during overload resolution *) allow return-type of method reference to be ignored if target descriptor is void *) only void-compatible lambda should be compatible with void descriptors

! src/share/classes/com/sun/tools/javac/code/Type.java ! src/share/classes/com/sun/tools/javac/comp/Attr.java ! src/share/classes/com/sun/tools/javac/comp/Check.java ! src/share/classes/com/sun/tools/javac/comp/Infer.java ! src/share/classes/com/sun/tools/javac/comp/Resolve.java ! src/share/classes/com/sun/tools/javac/resources/compiler.properties ! test/tools/javac/diags/examples.not-yet.txt



More information about the lambda-dev mailing list