On Mon, 5 Dec 2022 19:10:36 GMT, Daniel Fuchs <dfu...@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 <dfu...@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