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

Aleksey Shipilev shade at openjdk.org
Wed Jan 3 10:52:56 UTC 2024


On Tue, 12 Dec 2023 15:17:37 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> 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.
> 
> Additional testing:
>  - [x] macos-aarch64-server-fastdebug, `DcmdMBeanTestCheckJni.java` now passes
>  - [x]  macos-aarch64-server-fastdebug, `jdk_net`

This pull request has now been integrated.

Changeset: 3eb15b02
Author:    Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jdk17u-dev/commit/3eb15b02b5efeb065ada8c6ae2bc8718e7892deb
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

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

Reviewed-by: phh

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

PR: https://git.openjdk.org/jdk17u-dev/pull/2048


More information about the jdk-updates-dev mailing list