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

Inet4AddressImpl: Remove duplicate and (no longer used ?) native coding for BSD

    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:
      os_x

      Description

      In unix/native/libnet/Inet4AddressImpl.c there exist two paths of code for
      Java_java_net_Inet4AddressImpl_getLocalHostName
      Java_java_net_Inet4AddressImpl_lookupAllHostAddr and
      Java_java_net_Inet4AddressImpl_getHostByAddr

      There exists a code path that is used for _ALLBSD_SOURCE when the C-Runtime does not have gethostby... functions which seems a quite rare case. And it's even more obsolete as this code path is rather identical to the main path and implements lookup operations based on getaddrinfo/getnameinfo just as its counterparts.

        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: