RFR: 8369950: TLS connection to IPv6 address fails with BCJSSE due to IllegalArgumentException [v2]
Mikhail Yankelevich
myankelevich at openjdk.org
Tue Dec 2 16:54:45 UTC 2025
On Tue, 2 Dec 2025 16:46:29 GMT, Sergey Chernyshev <schernyshev at openjdk.org> wrote:
>> test/jdk/javax/net/ssl/HttpsURLConnection/SubjectAltNameIPv6.java line 110:
>>
>>> 108:
>>> 109: SSLSocketFactory sf = new SimpleSSLContext().get().getSocketFactory();
>>> 110: URL url = new URL("https://[::1]:" + serverPort + "/index.html");
>>
>> Suggestion:
>>
>> URL url =
>> new URI("https://[::1]:" + serverPort + "/index.html").toURL();
>
> I think the block is better readable without it.
It's deprecated since version 20 I think
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28577#discussion_r2582045071
More information about the security-dev
mailing list