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

Use getaddrinfo/getnameinfo in Windows Inet4AddresImpl native code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 9
    • 9
    • core-libs
    • b150
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: