pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
NetBSD openjdk11, ipv6 support?
Hello,
it seems like openjdk11 package on NetBSD does not support IPv6.
Test case:
import java.net.*;
public class listen {
static public void main(String[] args) throws Exception {
ServerSocket sock = new ServerSocket();
sock.bind(new InetSocketAddress("::1", 9812));
sock.accept();
}
}
/usr/pkg/java/openjdk11/bin/java listen:
Exception in thread "main" java.net.SocketException: Protocol family
unavailable
at java.base/java.net.PlainSocketImpl.socketBind(Native Method)
at
java.base/java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:436)
at java.base/java.net.ServerSocket.bind(ServerSocket.java:395)
at java.base/java.net.ServerSocket.bind(ServerSocket.java:349)
at listen.main(listen.java:5)
But /usr/pkg/java/openjdk8/bin/java works as expected.
This is with versions openjdk8-1.8.202 and openjdk11-1.11.0.10.9nb1
I didn't see anything in CVS logs indicating this would have changed, so
I didn't try updating. And especially not then openjdk8 version, because
it works.
Arto Huusko
Home |
Main Index |
Thread Index |
Old Index