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

Use getaddrinfo/getnameinfo in Windows Inet4AddresImpl native code

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b150
    • OS:
      windows

      Description

      Inet4AddressImpl still uses the APIs gethostbyname and gethostbyaddr whereas the Unix Inet4AddressImpl and the Inet6AddressImpl variants on both Unix and Windows already use the more modern APIs getaddrinfo/getnameinfo.

      As per the Microsoft documentation, gethostbyname and gethostbyaddr are considered deprecated (cf. https://msdn.microsoft.com/en-us/library/windows/desktop/ms738524(v=vs.85).aspx )

        Attachments

          Activity

            People

            • Assignee:
              clanger Christoph Langer
              Reporter:
              clanger Christoph Langer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: