RFR: 8297687: new URI(S,S,S,S) throws exception with incorrect index position reported in the error message
Jaikiran Pai
jpai at openjdk.org
Tue Dec 6 01:58:01 UTC 2022
On Mon, 5 Dec 2022 19:10:36 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
> In some circumstance, when using a constructor that expects a hostname and the hostname contains an illegal character, the URISyntaxException which is thrown might contain a misleading index pointing at the start of the authority component, instead of pointing at the illegal character that was found.
>
> This change fixes the misreported index, and adds corresponding tests to the URI/Test.java infrastructure.
Marked as reviewed by jpai (Reviewer).
-------------
PR: https://git.openjdk.org/jdk/pull/11518
More information about the net-dev
mailing list