methods that throws checked exceptions in a lambda block

Alan Bateman Alan.Bateman at oracle.com
Wed Feb 12 17:22:14 UTC 2014


On 12/02/2014 16:36, Henry Jen wrote:
>
>
> I am not sure there is a "recommended" way. Depends on how you need to 
> handle those exceptions, I'll put the lambda in a private function to 
> take care those exception, and surpress them in a UncheckedIOException.
Yes, I think it depends on whether he wants to recover and continue to 
attempt to zero the remaining files or not.

-Alan



More information about the core-libs-dev mailing list