Re: RFR: 8332686: InetAddress.ofLiteral can throw StringIndexOutOfBoundsException [v2]

2024-12-03 Thread Jaikiran Pai
On Tue, 3 Dec 2024 17:32:13 GMT, Aleksei Efimov wrote: >> The proposed change fixes `InetAddress.ofLiteral` and >> `Inet6Address.ofLiteral` to throw `IllegalArgumentException` instead of >> `StringIndexOutOfBoundsException` when an empty IP addres literal string is >> specified. >> The `Ine

Re: RFR: 8332686: InetAddress.ofLiteral can throw StringIndexOutOfBoundsException [v2]

2024-12-03 Thread Daniel Fuchs
On Tue, 3 Dec 2024 17:32:13 GMT, Aleksei Efimov wrote: >> The proposed change fixes `InetAddress.ofLiteral` and >> `Inet6Address.ofLiteral` to throw `IllegalArgumentException` instead of >> `StringIndexOutOfBoundsException` when an empty IP addres literal string is >> specified. >> The `Ine

Re: RFR: 8332686: InetAddress.ofLiteral can throw StringIndexOutOfBoundsException [v2]

2024-12-03 Thread Aleksei Efimov
> The proposed change fixes `InetAddress.ofLiteral` and > `Inet6Address.ofLiteral` to throw `IllegalArgumentException` instead of > `StringIndexOutOfBoundsException` when an empty IP addres literal string is > specified. > The `Inet4Address.ofLiteral` correctly throws `IllegalArgumentExceptio

Re: RFR: 8332686: InetAddress.ofLiteral can throw StringIndexOutOfBoundsException

2024-12-03 Thread Aleksei Efimov
On Tue, 3 Dec 2024 16:30:27 GMT, Jaikiran Pai wrote: >> The proposed change fixes `InetAddress.ofLiteral` and >> `Inet6Address.ofLiteral` to throw `IllegalArgumentException` instead of >> `StringIndexOutOfBoundsException` when an empty IP addres literal string is >> specified. >> The `Inet4

Re: RFR: 8332686: InetAddress.ofLiteral can throw StringIndexOutOfBoundsException

2024-12-03 Thread Daniel Fuchs
On Tue, 3 Dec 2024 15:52:31 GMT, Aleksei Efimov wrote: > The proposed change fixes `InetAddress.ofLiteral` and > `Inet6Address.ofLiteral` to throw `IllegalArgumentException` instead of > `StringIndexOutOfBoundsException` when an empty IP addres literal string is > specified. > The `Inet4Add

Re: RFR: 8332686: InetAddress.ofLiteral can throw StringIndexOutOfBoundsException

2024-12-03 Thread Jaikiran Pai
On Tue, 3 Dec 2024 15:52:31 GMT, Aleksei Efimov wrote: > The proposed change fixes `InetAddress.ofLiteral` and > `Inet6Address.ofLiteral` to throw `IllegalArgumentException` instead of > `StringIndexOutOfBoundsException` when an empty IP addres literal string is > specified. > The `Inet4Add