Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8313804

JDWP support for -Djava.net.preferIPv6Addresses=system

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • None
    • core-svc
    • None
    • b17

      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.

            cushon Liam Miller-Cushon
            cushon Liam Miller-Cushon
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: