changeset 7410:cfea7f72cbcd

8010213: Some api/javax_net/SocketFactory tests fail in 7u25 nightly build Summary: Eliminate fall-through while setting socket options on Windows Reviewed-by: alanb, chegar
author khazra
date Wed, 20 Mar 2013 11:50:11 -0700
parents b412e6128726
children 711187756b9e
files src/windows/classes/java/net/DualStackPlainSocketImpl.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/classes/java/net/DualStackPlainSocketImpl.java	Wed Mar 20 10:12:37 2013 -0700
+++ b/src/windows/classes/java/net/DualStackPlainSocketImpl.java	Wed Mar 20 11:50:11 2013 -0700
@@ -185,14 +185,15 @@
         int optionValue = 0;
 
         switch(opt) {
-            case TCP_NODELAY :
-            case SO_OOBINLINE :
             case SO_REUSEADDR :
                 if (exclusiveBind) {
                     // SO_REUSEADDR emulated when using exclusive bind
                     isReuseAddress = on;
                     return;
                 }
+                // intentional fallthrough
+            case TCP_NODELAY :
+            case SO_OOBINLINE :
             case SO_KEEPALIVE :
                 optionValue = on ? 1 : 0;
                 break;