Skip to content

Use correct method to read contents of a java.nio.file.Path - #1937

Closed
makkarpov wants to merge 1 commit into
swagger-api:masterfrom
makkarpov:master
Closed

Use correct method to read contents of a java.nio.file.Path#1937
makkarpov wants to merge 1 commit into
swagger-api:masterfrom
makkarpov:master

Conversation

@makkarpov

Copy link
Copy Markdown

toFile() fails when underlying path denotes virtual files (i.e. inside JARs on classpath).
readAllBytes works with all filesystems transparently.

@ewaostrowska

Copy link
Copy Markdown
Contributor

Thanks for the PR! The diagnosis here was correct. However, this issue has since been addressed by #2320, which implements the same provider neutral Path handling and includes regression coverage for non-default file systems.

Since that fix is now merged into master I am closing it as superseded by #2320.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants