hg: lambda/lambda/langtools: Generate all static lambda methods as static. Only interface instance (default) methods still public awaiting VM fixes.

Robert Field robert.field at oracle.com
Tue Apr 23 16:25:10 PDT 2013


This is just about how the compiler generates synthetic lambda methods. We intend to have all these methods be private, however, at this time, the VM does not yet support private interface default methods (that fix is in progress). Questions about Java language level support should be addressed in a different thread.
Thanks,
Robert


Peter Levart <peter.levart at gmail.com> wrote:

>Hi,
>
>We have default public instance methods, public static and private static methods in interfaces. Will there be private instance methods too? In the language or just as implementation detail for translating lambda bodies?
>
>Regards, Peter
>
>On 04/23/2013 11:19 PM, robert.field at oracle.com wrote:
>
>Changeset: b3a9d8ca17dd Author: rfield Date: 2013-04-23 14:19 -0700 URL: http://hg.openjdk.java.net/lambda/lambda/langtools/rev/b3a9d8ca17dd Generate all static lambda methods as static. Only interface instance (default) methods still public awaiting VM fixes. ! src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java 
>
>


More information about the lambda-dev mailing list