RFR: java/net/MulticastSocket/SetGetNetworkInterfaceTest.java throws java.net.SocketException: Cannot assign requested address

Mark Sheppard mark.sheppard at oracle.com
Mon Dec 23 10:21:32 PST 2013


Hi,
    Please oblige and review the following changes:

http://cr.openjdk.java.net/~msheppar/8027903/webrev/

which address the issue:

https://bugs.openjdk.java.net/browse/JDK-8027903

The test failure was found to be due to an interface configured with an 
IPv6 address and
no IPv4 address. The native code was calling 
mcast_set_if_by_addr_v4(...), which
raised an exception. The native code in 
src/solaris/native/java/net/PlainDatagramSocketImpl.c was amended to
check for a pending exception, and clear it prior to executing the ipv6 
function, in the ipv6 conditional block.

regards
Mark



More information about the net-dev mailing list