Early review on NIO Stream APIs

Ulf Zibis Ulf.Zibis at CoSoCo.de
Fri Feb 8 04:09:24 PST 2013


Am 08.02.2013 01:15, schrieb Henry Jen:
> The specdiff and webrev is available at
>
> http://cr.openjdk.java.net/~henryjen/ccc/8006884.0/
>
> Please include me in the reply as I don't necessary receiving emails
> from all aliases.

In Files.lines(...):
After returned from this method, if an I/O error occurs reading ...
should be:
After returned from this method, if an I/O error occurs while reading ...

In Files.walk(...):
... a given staring file...
should be:
... a given starting file...

Do those streams close automatically from finalize() method, if released to GC, e.g. by nulling the 
referencing variable? ...and if not, why?

-Ulf



More information about the nio-dev mailing list