Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
java.net.preferIPv4Stack=true warning not possible to disable on OpenBSD #5057
Let's say I try to take the advice it gives:
Well that sucks. I can only get the warning to be suppressed if I use a setting of false instead of true:
However, that changes the behavior, since the OpenBSD OpenJDK default is true (see https://github.com/openbsd/ports/blob/master/devel/jdk/1.8/patches/patch-jdk_src_solaris_native_java_lang_java_props_md_c#L8-L10).
I believe this behavior broke in d55cd48, which was an attempt to fix #4869. Since I'm guessing you don't want to revert that, is there a way JRuby can be fixed so that it doesn't warn if the JDK defaults java.net.preferIPv4Stack to true?
How did you install JRuby? You aren't passing that property and yet it is getting set somehow. That could mean it's using an older JRuby launcher script/executable that still tries to set it.
You may see the property being passed in bin/jruby if it's still a bash script.
Ahh, I see the bug. The property we deprecated is defaulting to whatever the JDK uses for the
Ugly workaround for now would be to set it to false at startup and then alter it (via