changeset 14183:6c46df4651c9

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