Files
openide/platform/core-nio-fs
Vladimir Lagunov f0a7a18efb IJPL-175521 Eel FS: MultiRoutingFileSystemProvider.newFileSystem throws UnsupportedOperationException
There are backends for opening archives as NIO filesystems. `java.nio.file.FileSystems.newFileSystem` iterates over backends and returns the filesystem from the first backend that doesn't throw an `UnsupportedOperationException`.

`FileSystems.newFileSystem` always tries the default file system provider the first. Before this commit, `FileSystems.newFileSystem` returned an instance of `MultiRoutingFileSystem` for ZIP files, while it was supposed to return `jdk.nio.zipfs.ZipFileSystem`.

Now `MultiRoutingFileSystemProvider.newFileSystem` throws UOE, just like `WindowsFileSystemProvider` and `UnixFileSystemProvider`.

GitOrigin-RevId: cb18db3d5d02060fc550a1b509b215b181ec6efc
2025-02-11 23:07:06 +00:00
..
2025-02-02 15:20:11 +00:00