8010213: Some api/javax_net/SocketFactory tests fail in 7u25 nightly build

Eliminate fall-through while setting socket options on Windows

Reviewed-by: alanb, chegar
This commit is contained in:
Kurchi Subhra Hazra 2013-03-20 11:50:11 -07:00
parent e97bdfa854
commit fcd5e6c404

View File

@ -185,14 +185,15 @@ class DualStackPlainSocketImpl extends AbstractPlainSocketImpl
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;