[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-nio-dev
Subject:    =?UTF-8?Q?Re=3a_=5b14=5d_8223151=3a_Document_whether_FileSystemProv?= =?UTF-8?Q?ider=2enewFileSystem
From:       Alan Bateman <Alan.Bateman () oracle ! com>
Date:       2019-06-16 6:57:43
Message-ID: 5539a39f-4ba7-224a-65a8-5a0a9c012cf9 () oracle ! com
[Download RAW message or body]

On 13/06/2019 19:15, Lance Andersen wrote:
> No, it is slightly different.
The underlying bug here is that the zip file system provider's 
newFileSystem(Path, Map) is throwing FileSystemAlreadyExistsException 
whereas it is supposed to create a new file system each time. There are 
questions in the issue for the scenario where the same file is open 
several times to create different file systems which leads to several 
provider specific questions on whether the zip file is locked or whether 
there is any other coordination between the different instances.

There is scope for additional javadoc, maybe in the FileSystems factory 
class or in FileSystemProvider to outline how providers that identify a 
file system via a URI should work. This will lead to discussion on 
Path.of(URI) and the observation that it is file system provider 
specific as to whether it creates a file system or returns a Path to a 
file in an existing file system. The zip file system provider was 
intended to support the latter approach for cases where the zip file 
system is created with a URI.

-Alan
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic