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

libdt_socket/socket_md.c(202) : warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW()

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 11
    • Component/s: core-svc
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b01
    • OS:
      windows

      Description

      In VS2013 SP4, gethostbyname has been deprecated. We should stop using deprecated functions.

      I'm disabling the warning by setting -D_WINSOCK_DEPRECATED_NO_WARNINGS for all jdk libraries in JDK-8080983. This bug is about correcting the issue so we may remove that workaround.

      The fix covers deprecated functions in lib net, nio and dt_socket.

      Note: makefiles using DISABLED_WARNINGS_microsoft including 4996 have explicitly disabled deprecated function warnings.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gadams Gary Adams (Inactive)
                Reporter:
                erikj Erik Joelsson
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: