RFR: 8258246: sun.net.www.ParseUtil.decode throws java.lang.IllegalArgumentException: Error decoding percent encoded characters [v2]

Alan Bateman alanb at openjdk.org
Fri Jan 31 14:32:52 UTC 2025


On Fri, 31 Jan 2025 12:53:32 GMT, Fabian Meumertzheim <fmeum at openjdk.org> wrote:

>> `URLClassPath` called into `ParseUtil.fileToEncodedURL`, which misencoded characters with a four byte UTF-8 representation. Replacing that function with `toPath().toUri().toURL()` (and removing it, since its only used once) results in correct encoding for all Unicode characters.
>
> Fabian Meumertzheim has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fix bug reference

/reviewers:2

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

PR Comment: https://git.openjdk.org/jdk/pull/23383#issuecomment-2627490621


More information about the net-dev mailing list