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

HostsFileNameService doesn't handle IPv6 literal addresses correctly

    XMLWordPrintable

    Details

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

      Description

      For example, ::1 and 0:0:0:0:0:0:0:1 should yield the same output.

      The system property `jdk.net.hosts.file` can be defined to effect InetAddress name and address resolution calls, i.e getByXXX. The value of the system property is a filename that contains the mappings. The structure of this file is equivalent to that of the /etc/hosts file.

      For example:
        10.2.3.4 testHost.testDomain
        ::1 ip6-localhost ip6-loopback

        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: