RFR: 8353453: URLDecoder should use HexFormat
Roger Riggs
rriggs at openjdk.org
Wed Apr 2 15:24:54 UTC 2025
On Wed, 2 Apr 2025 10:03:17 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> They are both NumberFormatException that is immediately handled by an enclosing catch block. This change should only affect the exception message for inputs fragments like %-F.
>
> Right. And `NumberFormatException` is a subclass of `IllegalArgumentException` so that would remain compatible even if it were not caught and replaced by plain IAE.
I pointed it out to emphasize that exceptions and exception messages should be considered and reviewed when making a change.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24314#discussion_r2025073332
More information about the net-dev
mailing list