8154454: Fix compilation issue in PlainSocketImpl

Reviewed-by: chegar
This commit is contained in:
Claes Redestad 2016-04-18 16:48:12 +02:00
parent 630e47238e
commit 194be0cffa

View File

@ -80,7 +80,7 @@ class PlainSocketImpl extends AbstractPlainSocketImpl
* Constructs an instance with the given file descriptor.
*/
PlainSocketImpl(FileDescriptor fd) {
if (useDualStackImpl) {
if (!preferIPv4Stack) {
impl = new DualStackPlainSocketImpl(fd, exclusiveBind);
} else {
impl = new TwoStacksPlainSocketImpl(fd, exclusiveBind);