hg: jdk8/tl/langtools: 4 new changesets
maurizio.cimadamore at oracle.com
maurizio.cimadamore at oracle.com
Fri Nov 30 15:15:50 UTC 2012
Changeset: 4f9853659bf1
Author: mcimadamore
Date: 2012-11-30 15:14 +0000
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/4f9853659bf1
8004105: Expression statement lambdas should be void-compatible
Summary: Fix lambda compatibility rules as per latest EDR
Reviewed-by: jjg
! src/share/classes/com/sun/tools/javac/comp/Attr.java
! src/share/classes/com/sun/tools/javac/parser/JavacParser.java
! src/share/classes/com/sun/tools/javac/tree/TreeInfo.java
! test/tools/javac/lambda/LambdaConv21.java
! test/tools/javac/lambda/LambdaConv21.out
! test/tools/javac/lambda/VoidCompatibility.out
Changeset: 34d1ebaf4645
Author: mcimadamore
Date: 2012-11-30 15:14 +0000
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/34d1ebaf4645
8004102: Add support for generic functional descriptors
Summary: Method references are allowed to have a generic functional interface descriptor target
Reviewed-by: jjg
! src/share/classes/com/sun/tools/javac/code/Types.java
! src/share/classes/com/sun/tools/javac/comp/Attr.java
! src/share/classes/com/sun/tools/javac/resources/compiler.properties
- test/tools/javac/diags/examples/InvalidGenericDescInFunctionalInterface.java
+ test/tools/javac/diags/examples/InvalidGenericLambdaTarget.java
+ test/tools/javac/lambda/FunctionalInterfaceConversionTest.java
- test/tools/javac/lambda/LambdaConversionTest.java
+ test/tools/javac/lambda/MethodReference57.java
+ test/tools/javac/lambda/MethodReference58.java
+ test/tools/javac/lambda/MethodReference58.out
Changeset: 9b26c96f5138
Author: mcimadamore
Date: 2012-11-30 15:14 +0000
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/9b26c96f5138
8004101: Add checks for method reference well-formedness
Summary: Bring method reference type-checking in sync with latest EDR
Reviewed-by: jjg
! src/share/classes/com/sun/tools/javac/comp/Attr.java
! src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java
! src/share/classes/com/sun/tools/javac/comp/Resolve.java
! src/share/classes/com/sun/tools/javac/resources/compiler.properties
! src/share/classes/com/sun/tools/javac/tree/JCTree.java
+ test/tools/javac/diags/examples/StaticBoundMref.java
+ test/tools/javac/diags/examples/StaticMrefWithTargs.java
! test/tools/javac/lambda/MethodReference30.java
+ test/tools/javac/lambda/MethodReference55.java
+ test/tools/javac/lambda/MethodReference55.out
+ test/tools/javac/lambda/MethodReference56.java
+ test/tools/javac/lambda/MethodReference56.out
! test/tools/javac/lambda/methodReference/MethodRef1.java
! test/tools/javac/lambda/methodReference/SamConversion.java
! test/tools/javac/lambda/methodReferenceExecution/MethodReferenceTestKinds.java
Changeset: f6f1fd261f57
Author: mcimadamore
Date: 2012-11-30 15:14 +0000
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/f6f1fd261f57
8002099: Add support for intersection types in cast expression
Summary: Add parser and type-checking support for intersection types in cast expressions
Reviewed-by: jjg
+ src/share/classes/com/sun/source/tree/IntersectionTypeTree.java
! src/share/classes/com/sun/source/tree/Tree.java
! src/share/classes/com/sun/source/tree/TreeVisitor.java
! src/share/classes/com/sun/source/util/SimpleTreeVisitor.java
! src/share/classes/com/sun/source/util/TreeScanner.java
! src/share/classes/com/sun/tools/javac/code/Source.java
! src/share/classes/com/sun/tools/javac/code/Type.java
! src/share/classes/com/sun/tools/javac/code/Types.java
! src/share/classes/com/sun/tools/javac/comp/Attr.java
! src/share/classes/com/sun/tools/javac/comp/TransTypes.java
! src/share/classes/com/sun/tools/javac/jvm/ClassReader.java
! src/share/classes/com/sun/tools/javac/model/JavacTypes.java
! src/share/classes/com/sun/tools/javac/parser/JavacParser.java
! src/share/classes/com/sun/tools/javac/resources/compiler.properties
! src/share/classes/com/sun/tools/javac/tree/JCTree.java
! src/share/classes/com/sun/tools/javac/tree/Pretty.java
! src/share/classes/com/sun/tools/javac/tree/TreeCopier.java
! src/share/classes/com/sun/tools/javac/tree/TreeMaker.java
! src/share/classes/com/sun/tools/javac/tree/TreeScanner.java
! src/share/classes/com/sun/tools/javac/tree/TreeTranslator.java
+ src/share/classes/javax/lang/model/type/IntersectionType.java
! src/share/classes/javax/lang/model/type/TypeKind.java
! src/share/classes/javax/lang/model/type/TypeVisitor.java
! src/share/classes/javax/lang/model/util/AbstractTypeVisitor6.java
! src/share/classes/javax/lang/model/util/AbstractTypeVisitor8.java
+ test/tools/javac/cast/intersection/IntersectionTypeCastTest.java
+ test/tools/javac/cast/intersection/IntersectionTypeParserTest.java
+ test/tools/javac/cast/intersection/model/Check.java
+ test/tools/javac/cast/intersection/model/IntersectionTypeInfo.java
+ test/tools/javac/cast/intersection/model/Member.java
+ test/tools/javac/cast/intersection/model/Model01.java
+ test/tools/javac/cast/intersection/model/ModelChecker.java
+ test/tools/javac/diags/examples/IntersectionTypesInCastNotSupported.java
+ test/tools/javac/diags/examples/SecondaryBoundMustBeMarkerIntf.java
+ test/tools/javac/lambda/Intersection01.java
+ test/tools/javac/lambda/Intersection01.out
! test/tools/javac/lambda/LambdaParserTest.java
+ test/tools/javac/lambda/intersection/IntersectionTargetTypeTest.java
More information about the core-libs-dev
mailing list