[Bug 282251] java/openjdk22: IPv6 / INET6 is broken

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 06 Jul 2026 21:45:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282251

--- Comment #11 from Patrick Mackinlay <freebsd.68fba@nospam.spacesurfer.com> ---
On openjdk25 (current stable java), the code at the top works whatever the
net.inet6.ip6.v6only sysctl is set to.
But, with -Djava.net.preferIPv4Stack=true the code fails with "Failed to
connect to localhost with INET6"
The code works if you dont define java.net.preferIPv4Stack or set it to false.
I think it should work regardless of what you set the value to, it does in
linux. However, the current state is better than what it was in openjdk17. So I
think you can close this issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.