New JEP: Concise Method Bodies

Kevin Bourrillion kevinb at google.com
Tue Sep 25 14:25:28 UTC 2018


On Mon, Sep 24, 2018 at 10:17 AM Alex Buckley <alex.buckley at oracle.com>
wrote:

On 9/21/2018 4:07 PM, Kevin Bourrillion wrote:
> >
> >    private String a(String b, int c)
> >        throws SomeCheckedException = *d.e()*::f;
>

(Eek, I'll try to remind myself to stop boldfacing things.)



> > ... and would this be valid whether it is `e()` or `f()` (or both) that
> > throws SomeCheckedException?
>
> I expect so. Do you have a situation that suggests otherwise?
>

Nope, that sounds like what it should do, of course.

Thanks!

-- 
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/20180925/d36035c7/attachment.html>


More information about the amber-spec-experts mailing list