JDK-8004101 : Add checks for method reference well-formedness
  • Type: Sub-task
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-11-28
  • Updated: 2013-06-11
  • Resolved: 2012-11-30
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 b68Fixed
Description
There are two cases of method references that need to be rejected by the compiler:

*) static bound method references (i.e. new Foo()::staticMethod)
*) static method ref with parameterized qualifier (i.e. Foo<String>::staticMethod)