New JEP: Concise Method Bodies

Kevin Bourrillion kevinb at google.com
Fri Sep 21 23:07:14 UTC 2018


"The method reference form can use most kinds of method references after
the = sign: static and unbound method references, bound method references
(if the receiver *variable* is in scope for the method declaration)"

Can we still bind to any expression?

  private String a(String b, int c)
      throws SomeCheckedException = *d.e()*::f;

... and would this be valid whether it is `e()` or `f()` (or both) that
throws SomeCheckedException?



On Wed, Sep 19, 2018 at 11:52 AM Alex Buckley <alex.buckley at oracle.com>
wrote:

> https://bugs.openjdk.java.net/browse/JDK-8209434
>


-- 
Kevin Bourrillion | Java Librarian | Google, Inc. | kevinb at google.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/amber-spec-experts/attachments/20180921/b1fe3825/attachment.html>


More information about the amber-spec-experts mailing list