diff -r 203fceb089fc -r 692de65ab293 src/java.base/share/classes/sun/nio/ch/SelectorProviderImpl.java --- a/src/java.base/share/classes/sun/nio/ch/SelectorProviderImpl.java Tue Oct 29 08:26:48 2019 +0000 +++ b/src/java.base/share/classes/sun/nio/ch/SelectorProviderImpl.java Tue Oct 29 19:23:09 2019 +0000 @@ -66,7 +66,7 @@ if (family == StandardProtocolFamily.INET || family == StandardProtocolFamily.INET6) { throw new UnsupportedOperationException("This will be supported, but is not implemented yet"); //return new InetSocketChannelImpl(this); - } else if (family == StandardProtocolFamily.UNIX) { + } else if (family == StandardProtocolFamily.UNIX && Net.isUnixDomainSupported()) { return new UnixDomainSocketChannelImpl(this, Net.unixDomainSocket(), false); } else throw new UnsupportedAddressTypeException(); @@ -77,7 +77,7 @@ if (family == StandardProtocolFamily.INET || family == StandardProtocolFamily.INET6) { throw new UnsupportedOperationException("This will be supported, but is not implemented yet"); //return new InetServerSocketChannelImpl(this); - } else if (family == StandardProtocolFamily.UNIX) { + } else if (family == StandardProtocolFamily.UNIX && Net.isUnixDomainSupported()) { return new UnixDomainServerSocketChannelImpl(this); } else throw new UnsupportedAddressTypeException();