Integrated: 8297687: new URI(S, S, S, S) throws exception with incorrect index position reported in the error message

Daniel Fuchs dfuchs at openjdk.org
Tue Dec 6 12:49: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.

This pull request has now been integrated.

Changeset: b0e54328
Author:    Daniel Fuchs <dfuchs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/b0e54328c530faf8aae2f48a37ff378215142689
Stats:     51 lines in 2 files changed: 48 ins; 0 del; 3 mod

8297687: new URI(S,S,S,S) throws exception with incorrect index position reported in the error message

Reviewed-by: jpai

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

PR: https://git.openjdk.org/jdk/pull/11518


More information about the net-dev mailing list