On 02/08/2013 04:09 AM, Ulf Zibis wrote: > Am 08.02.2013 01:15, schrieb Henry Jen:
> 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... > Fixed, thanks. > Do those streams close automatically from finalize() method, if released > to GC, e.g. by nulling the referencing variable? ...and if not, why? > The stream doesn't do that, it's transparent to whatever the underlying Closeable resource's behavior. Cheers, Henry