New JEP: Concise Method Bodies

Kevin Bourrillion kevinb at
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>


Kevin Bourrillion | Java Librarian | Google, Inc. | kevinb at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the amber-spec-experts mailing list