-
Notifications
You must be signed in to change notification settings - Fork 40.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Windows path handling for nested jars
Update `Path` creation for nested locations to allow both UNC and classic file references to be used. This commit attempts to align our URL handling with that of standard file URLs. The `NestedLocation` class no longer attempts to remove leading all `\` characters and instead only removes the first `\` when the second char is `:`. This duplicates the logic found in Java's own internal `WindowsUriSupport` class which is used when calling `Path.of(url)` with a `file:` URL. Fixes gh-40549
- Loading branch information
Showing
4 changed files
with
28 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters