Exception transparency

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Wed Jun 9 01:23:48 PDT 2010


On 09/06/10 00:44, Neal Gafter wrote:
> >  Function<throws IOException>  e = #(IOException e){...};
Hi
just to be clear, on which basis would you reject the above statement? I 
guess your argument is that a lambda accepting an argument  of type E 
cannot be SAM-converted to an interface whose method accepts an argument 
of type 'throws E' (and, more generally, that E and 'throws E' are not 
interchangeable). Am I reading correctly?

Thanks
Maurizio


More information about the lambda-dev mailing list