Details
-
Enhancement
-
Resolution: Fixed
-
P4
-
19
-
b13
-
windows
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8332848 | 17.0.12 | Andrew Hughes | P4 | Resolved | Fixed | b05 |
JDK-8333838 | 11.0.25 | Andrew Hughes | P4 | Resolved | Fixed | b01 |
Description
> We currently suppress warnings for uses of some functions in winsock2.h (before
> _WINSOCK_DEPRECATED_NO_WARNINGS). It might be better to update our code to not use the deprecated names and remove the warning suppression.
but it turns out that gethostbyname is also marked as obsolete on Linux and is not part of Posix anyway! So we can replace its use by getaddrinfo which is supported on Windows and Posix.
inet_addr is also deprecated on Windows and considered superceded in Posix by inet_pton.
Attachments
Issue Links
- backported by
-
JDK-8332848 Replace the deprecated/obsolete gethostbyname and inet_addr calls
- Resolved
-
JDK-8333838 Replace the deprecated/obsolete gethostbyname and inet_addr calls
- Resolved
- relates to
-
JDK-8286262 Windows: Cleanup deprecation warning suppression
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/e4fb2286
-
Commit openjdk/jdk17u-dev/4071b8c9
-
Commit openjdk/jdk/d7298245
-
Review openjdk/jdk11u-dev/2732
-
Review openjdk/jdk17u-dev/2487
-
Review openjdk/jdk/12842