[jdk17u-dev] RFR: 8272702: Resolving URI relative path with no / may lead to incorrect toString

Radim Vansa duke at openjdk.org
Thu Feb 16 13:27:22 UTC 2023


I backport this as it affects to JDK 17.
Does not apply clean due to a conflict with https://bugs.openjdk.org/browse/JDK-8285521 but it's the same logic.

---------
### Progress
- [ ] Change must be properly reviewed (1 review required, with at least 1 [Reviewer](https://openjdk.org/bylaws#reviewer))
- [x] Change must not contain extraneous whitespace
- [x] Commit message must refer to an issue

### Error
 ⚠️ The pull request body must not be empty.



### Reviewing
<details><summary>Using <code>git</code></summary>

Checkout this PR locally: \
`$ git fetch https://git.openjdk.org/jdk17u-dev pull/1176/head:pull/1176` \
`$ git checkout pull/1176`

Update a local copy of the PR: \
`$ git checkout pull/1176` \
`$ git pull https://git.openjdk.org/jdk17u-dev pull/1176/head`

</details>
<details><summary>Using Skara CLI tools</summary>

Checkout this PR locally: \
`$ git pr checkout 1176`

View PR using the GUI difftool: \
`$ git pr show -t 1176`

</details>
<details><summary>Using diff file</summary>

Download this PR as a diff file: \
<a href="https://git.openjdk.org/jdk17u-dev/pull/1176.diff">https://git.openjdk.org/jdk17u-dev/pull/1176.diff</a>

</details>

-------------

Commit messages:
 - Backport 79597f1ea6844f374beeeba219719cd9d5fe7d03

Changes: https://git.openjdk.org/jdk17u-dev/pull/1176/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=1176&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8272702
  Stats: 29 lines in 2 files changed: 24 ins; 0 del; 5 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/1176.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev pull/1176/head:pull/1176

PR: https://git.openjdk.org/jdk17u-dev/pull/1176


More information about the jdk-updates-dev mailing list