JDK-7115046 : Add AST node for lambda expressions
  • Type: Sub-task
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: unknown
  • Submitted: 2011-11-23
  • Updated: 2012-09-28
  • Resolved: 2012-03-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b17Fixed
Description
Add AST node for lambda expressions - this includes changes to Tree API.

Comments
SUGGESTED FIX A webrev of this fix is available at the following URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/c896d95e7469
24-11-2011

EVALUATION A lambda expression AST node should contains the following info: *) list of JCVariableDecl (for lambda parameters) *) lambda body Since the body can be either a JCBlock or a JCExpression, it would be useful to use an enum to encode the lambda expression kind (i.e. statement lambda vs. expression lambda).
24-11-2011