hg: lambda/lambda/langtools: Enhancement: Add language support for @FunctionalInterface

maurizio.cimadamore at oracle.com maurizio.cimadamore at oracle.com
Wed Jan 9 05:40:32 PST 2013


Changeset: ff18dac7865e
Author:    mcimadamore
Date:      2013-01-09 14:39 +0100
URL:       http://hg.openjdk.java.net/lambda/lambda/langtools/rev/ff18dac7865e

Enhancement: Add language support for @FunctionalInterface
Functional interfaces declarations can be marked with the @FunctionalInterface annotation.
The compiler will check that the annotated element is truly a functional interface.

! src/share/classes/com/sun/tools/javac/code/Symtab.java
! src/share/classes/com/sun/tools/javac/code/Types.java
! src/share/classes/com/sun/tools/javac/comp/Check.java
! src/share/classes/com/sun/tools/javac/resources/compiler.properties
! src/share/classes/com/sun/tools/javac/util/RichDiagnosticFormatter.java
! test/tools/javac/diags/examples.not-yet.txt
! test/tools/javac/lambda/BadConv03.out
! test/tools/javac/lambda/BadLambdaPos.out
! test/tools/javac/lambda/BadTargetType.out
+ test/tools/javac/lambda/FunctionalInterfaceAnno.java
+ test/tools/javac/lambda/FunctionalInterfaceAnno.out
! test/tools/javac/lambda/Intersection01.out
! test/tools/javac/lambda/LambdaConv09.out
! test/tools/javac/lambda/LambdaExpr10.out
! test/tools/javac/lambda/MethodReference04.out
! test/tools/javac/lambda/TargetType17.out
! test/tools/javac/lambda/TargetType43.out
! test/tools/javac/lambda/funcInterfaces/LambdaTest2_neg1.out
! test/tools/javac/lambda/funcInterfaces/NonSAM1.out
! test/tools/javac/lambda/funcInterfaces/NonSAM3.out
! test/tools/javac/lambda/lambdaExpression/AbstractClass_neg.out
! test/tools/javac/lambda/lambdaExpression/InvalidExpression5.out



More information about the lambda-dev mailing list