On Mon, 15 Dec 2025 13:15:32 GMT, Matthias Baesken <[email protected]> wrote:

> We have a Linux machine with IPV6 disabled.
> There the test javax/net/ssl/HttpsURLConnection/SubjectAltNameIP.java fails.
> Error is
> 
> java.lang.RuntimeException: Server failed to start.
> at SubjectAltNameIP.doClientSide(SubjectAltNameIP.java:139)
> at SubjectAltNameIP.<init>(SubjectAltNameIP.java:189)
> at SubjectAltNameIP.main(SubjectAltNameIP.java:176)
> at 
> java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
> at java.base/java.lang.reflect.Method.invoke(Method.java:565)
> at 
> com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
> at java.base/java.lang.Thread.run(Thread.java:1516)
> Caused by: java.net.SocketException: Protocol family unavailable
> 
> 
> After looking into the test, it turned out the IPV6 address `::1`  was passed 
> in the notion `[::1] `to the isIPv6LiteralAddress, but this method must get 
> the address without '[' and ']' .
> Additionally I adjusted the exception a bit so that it directly mentions IPV6 
> and not just some 'protol family' .

This pull request has now been integrated.

Changeset: 9e2008bf
Author:    Matthias Baesken <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/9e2008bf5e9a63b640eefc6cc7ec5c4f344c4266
Stats:     8 lines in 1 file changed: 5 ins; 0 del; 3 mod

8373676: Test javax/net/ssl/HttpsURLConnection/SubjectAltNameIP.java fails on a 
machine without IPV6

Reviewed-by: jpai, dfuchs

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

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

Reply via email to