I am not sure, because RandomAccessFile has a getChannel method, so I suspect 
that they share the descriptor. Maybe check it with lsof?

Possibly we could wait until Simon provides a testcase that fails.

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: [email protected]


> -----Original Message-----
> From: Michael McCandless [mailto:[email protected]]
> Sent: Thursday, January 28, 2010 12:08 PM
> To: [email protected]
> Subject: Re: Nasty NIO behavior makes NIOFSDirectory silently close
> channel
> 
> On Thu, Jan 28, 2010 at 5:59 AM, Uwe Schindler <[email protected]> wrote:
> > But if you keep the underlying RandomAccessFile open?
> 
> We could do that but... won't this consume 2 file descriptors?
> 
> Mike
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to