[jdk11u-dev] RFR: 8205076: [17u] Inet6AddressImpl.c: `lookupIfLocalHost` accesses `int InetAddress.preferIPv6Address` as a boolean

Aleksey Shipilev shade at openjdk.org
Thu Jun 13 14:17:39 UTC 2024


This is a 11u and 17u -specific bug, see JBS and its comments for more details. I think we can fix this by explicitly checking against the `PREFER_IPV6_VALUE`, like post JDK 18 code does.

It is a bit weird to backport the issue with `[17u]` in title, but I think it is the cleanest way to make sure we backport the same fix 17u already ships with.

Additional testing:
 - [x] macos-aarch64-server-fastdebug, `DcmdMBeanTestCheckJni.java` now passes
 - [x] macos-aarch64-server-fastdebug, `jdk_net`

-------------

Commit messages:
 - Backport 3eb15b02b5efeb065ada8c6ae2bc8718e7892deb

Changes: https://git.openjdk.org/jdk11u-dev/pull/2769/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=2769&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8205076
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk11u-dev/pull/2769.diff
  Fetch: git fetch https://git.openjdk.org/jdk11u-dev.git pull/2769/head:pull/2769

PR: https://git.openjdk.org/jdk11u-dev/pull/2769


More information about the jdk-updates-dev mailing list