changeset 37370:4dcebdd2bbc0

8154454: Fix compilation issue in PlainSocketImpl Reviewed-by: chegar
author redestad
date Mon, 18 Apr 2016 16:48:12 +0200
parents 770f6e0237e4
children 12cf839a9b2d
files jdk/src/java.base/windows/classes/java/net/PlainSocketImpl.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/java.base/windows/classes/java/net/PlainSocketImpl.java	Mon Apr 18 14:01:03 2016 +0200
+++ b/jdk/src/java.base/windows/classes/java/net/PlainSocketImpl.java	Mon Apr 18 16:48:12 2016 +0200
@@ -80,7 +80,7 @@
      * 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);