8000 Sensless feedback loop · Issue #165 · google/jimfs · GitHub
[go: up one dir, main page]

Skip to content

Sensless feedback loop #165

Open
Open

Description

@coladict

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.

Activity

  1. netdpb commented on Aug 23, 2021

    @netdpb
    Member

    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?

  2. self-assigned this
    on Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3type=defectBug, not working as expected

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0