google/jimfs

closing a filesystem does not close its ByteChannels

Opened this issue · 1 comments

e.g.

FileSystem jimfs = Jimfs.newFileSystem(Configuration.unix());
Path path = jimfs.getPath( "/foo" );
SeekableByteChannle readChannel = Files.newByteChannel( path, StandardOpenOption.READ );
jimfs.close();
readChannel.read() // should throw ClosedChannelException

i.e. the channel is still open

Fixed.