You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JimfsFileSystemProvider#getFileSystem(URI) and JimfsFileSystemProvider#getPath(URI) just throw exceptions telling you to use FileSystems.getFileSystem(URI) and Paths.get(URI) respectively, but those recommended methods just fall back on calling these ones that throw unconditional exceptions.
Expectation:
You call Paths.get(URI) where the URI has a jimfs scheme and you get a Path object.
Reality:
You get an exception saying This method should not be called directly; use Paths.get(URI) instead.
The text was updated successfully, but these errors were encountered:
Hmm. JimfsFileSystemProvider's documentation says that it is not the class that's used by FileSystems.getFileSystem(URI) and Paths.get(URI). Instead, SystemJimfsFileSystemProvider is the class registered for those methods, and that class correctly implements those two methods.
JimfsFileSystemProvider#getFileSystem(URI)
andJimfsFileSystemProvider#getPath(URI)
just throw exceptions telling you to useFileSystems.getFileSystem(URI)
andPaths.get(URI)
respectively, but those recommended methods just fall back on calling these ones that throw unconditional exceptions.Expectation:
You call
Paths.get(URI)
where the URI has ajimfs
scheme and you get aPath
object.Reality:
You get an exception saying
This method should not be called directly; use Paths.get(URI) instead.
The text was updated successfully, but these errors were encountered: