JDK-7115049 : Add AST node for method references
  • 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: 2013-08-01
  • Resolved: 2012-04-20
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 method references - 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/ec59a2ce9114
24-11-2011

EVALUATION A method reference AST node should contains the following info: *) qualifier expression AST node *) type-argument list (for references to generic methods/constructors) *) name of referenced symbol Since there are two kinds of member references (method vs. constructor references) it would be useful to use an enum to encode the method reference kind.
24-11-2011