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

2025-01-31 Thread Fabian Meumertzheim
On Fri, 31 Jan 2025 14:30:35 GMT, Alan Bateman wrote: >> Fabian Meumertzheim has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Fix bug reference > > /reviewers:2 @AlanBateman Did you mean `/reviewers 2`?

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

2025-01-31 Thread Fabian Meumertzheim
On Fri, 31 Jan 2025 09:47:35 GMT, Fabian Meumertzheim 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

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

2025-01-31 Thread Fabian Meumertzheim
`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. -

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

2025-01-31 Thread Fabian Meumertzheim
> `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 charact