Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8221681 Improved IPv6 Support
  3. JDK-8223214

Inet6AddressImpl.loopbackAddress() should choose loopback address that is available

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 13
    • Fix Version/s: 13
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b22

      Description

      Currently, Inet6AddressImpl.loopbackAddress() will unconditionally choose the IPv6 loopback address if java.net.preferIPv6Address is set to "system" or "true", else unconditionally choose the IPv4 loopback address.

      Instead it should try out both loopback addresses and return whichever one works, giving preference to IPv6 if java.net.preferIPv6Address is set to "system" or "true", else giving preference to IPv4. This way there is no need to set java.net.preferIPv6Address in an IPv6-only environment to get a valid loopback address.

        Attachments

          Activity

            People

            Assignee:
            aeubanks Arthur Eubanks
            Reporter:
            aeubanks Arthur Eubanks
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: