hg: lambda/lambda/langtools: Improved support for lambda conversion.
Neal Gafter
neal at gafter.com
Mon Jun 21 07:11:10 PDT 2010
Maurizio-
What are the rules about checked exceptions thrown by the constructor? What accessibility rules are enforced for the constructor? How are the constructor's type parameters inferred? Is there any way to access the SAM class from within the lambda?
-Neal
On Jun 21, 2010, at 5:47 AM, maurizio.cimadamore at oracle.com wrote:
> Changeset: 02b8de982628
> Author: mcimadamore
> Date: 2010-06-21 13:43 +0100
> URL: http://hg.openjdk.java.net/lambda/lambda/langtools/rev/02b8de982628
>
> Improved support for lambda conversion.
>
> Now the prototype supports lambda conversion where the target type is an abstract class. This is (temporarily) done by generating a synthetic anonymous inner class implementing the SAM method. Also added some checks involving lambda conversion described in the strawman:
>
> *) abstract class targeted by a lambda conversion must have default constructor
> *) target method of lambda conversion cannot be generic
>
> ! src/share/classes/com/sun/tools/javac/code/Types.java
> ! src/share/classes/com/sun/tools/javac/comp/Lower.java
> ! src/share/classes/com/sun/tools/javac/resources/compiler.properties
> + test/tools/javac/lambda/BadConv01.java
> + test/tools/javac/lambda/BadConv01.out
> + test/tools/javac/lambda/BadConv02.java
> + test/tools/javac/lambda/BadConv02.out
> + test/tools/javac/lambda/LambdaConv07.java
>
>
More information about the lambda-dev
mailing list