Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensless feedback loop #165

Open
coladict opened this issue Aug 18, 2021 · 1 comment
Open

Sensless feedback loop #165

coladict opened this issue Aug 18, 2021 · 1 comment
Assignees
Labels
P3 type=defect Bug, not working as expected

Comments

@coladict
Copy link

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.

@netdpb
Copy link
Member

netdpb commented Aug 23, 2021

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.

Can you paste a small reproducing program here?

@netdpb netdpb self-assigned this Aug 23, 2021
@netdpb netdpb added P3 type=defect Bug, not working as expected labels Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 type=defect Bug, not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants