hg: lambda/lambda/langtools: Bug fixes:

maurizio.cimadamore at oracle.com maurizio.cimadamore at oracle.com
Mon Aug 23 05:49:41 PDT 2010

Changeset: 1bb5b46bb326
Author:    mcimadamore
Date:      2010-08-23 13:48 +0100
URL:       http://hg.openjdk.java.net/lambda/lambda/langtools/rev/1bb5b46bb326

Bug fixes:
*) binary expression in lambda expression is not parsed correctly (Scanner.popState fails to restore state)
*) method references: static vs. non-static selection logic in method references does not always works
*) failure to infer exception thrown types from lambda body causes checked exception to be skipped
*) lambda expression body (when not a block) cannot be void

! 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/parser/Scanner.java
! src/share/classes/com/sun/tools/javac/tree/TreeInfo.java
+ test/tools/javac/lambda/LambdaExpr05.java
+ test/tools/javac/lambda/LambdaExprNotVoid.java
+ test/tools/javac/lambda/LambdaExprNotVoid.out
+ test/tools/javac/lambda/MethodReference11.java
+ test/tools/javac/lambda/TargetType13.java
+ test/tools/javac/lambda/TargetType13.out

More information about the lambda-dev mailing list