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 )

        Activity

        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/24f8703890b2
        User: clanger
        Date: 2016-12-20 09:52:50 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/24f8703890b2 User: clanger Date: 2016-12-20 09:52:50 +0000
        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/24f8703890b2
        User: lana
        Date: 2016-12-21 16:40:05 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/24f8703890b2 User: lana Date: 2016-12-21 16:40:05 +0000

          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: