java.net.preferIPv6Addresses is documented as supporting three values: true, false, and system: https://github.com/openjdk/jdk/blob/6d185296161606edbc9f737a6b1b27496add9367/src/java.base/share/classes/java/net/doc-files/net-properties.html#L55-L63
The JDWP implementation reads preferIPv6Addresses, but it only handles the 'true' and 'false' values: https://github.com/openjdk/jdk/blob/6d185296161606edbc9f737a6b1b27496add9367/src/jdk.jdwp.agent/share/native/libdt_socket/socketTransport.c#L1370-L1371
JDWP should be updated to handle -Djava.net.preferIPv6Addresses=system, and avoid re-ordering the address returned by getaddrinfo in that case.
The JDWP implementation reads preferIPv6Addresses, but it only handles the 'true' and 'false' values: https://github.com/openjdk/jdk/blob/6d185296161606edbc9f737a6b1b27496add9367/src/jdk.jdwp.agent/share/native/libdt_socket/socketTransport.c#L1370-L1371
JDWP should be updated to handle -Djava.net.preferIPv6Addresses=system, and avoid re-ordering the address returned by getaddrinfo in that case.
- relates to
-
JDK-8250630 test/jdk/com/sun/jdi/JdwpListenTest.java fails on Alpine Linux
- Resolved
-
JDK-8317804 com/sun/jdi/JdwpAllowTest.java fails on Alpine 3.17 / 3.18
- Resolved
-
JDK-8016521 InetAddress should not always re-order addresses returned from name service
- Closed
-
JDK-8221681 Improved IPv6 Support
- Open
-
JDK-8184770 JDWP support for IPv6
- Resolved
(2 links to)