2004-09-21 Michael Koch <konqueror@gmx.de>
* java/net/Socket.java (getLocalAddress): Return InetAddress.ANY_IF if not bound yet. From-SVN: r87817
This commit is contained in:
parent
448a698b4e
commit
938806922d
@ -1,3 +1,8 @@
|
||||
2004-09-21 Michael Koch <konqueror@gmx.de>
|
||||
|
||||
* java/net/Socket.java
|
||||
(getLocalAddress): Return InetAddress.ANY_IF if not bound yet.
|
||||
|
||||
2004-09-21 Casey Marshall <csm@gnu.org>
|
||||
|
||||
* javax/crypto/MacSpi.java (clone): Provide meaningful
|
||||
|
@ -479,7 +479,8 @@ public class Socket
|
||||
|
||||
/**
|
||||
* Returns the local address to which this socket is bound. If this socket
|
||||
* is not connected, then <code>null</code> is returned.
|
||||
* is not connected, then a wildcard address, for which
|
||||
* @see isAnyLocalAddress() is <code>true</code>, is returned.
|
||||
*
|
||||
* @return The local address
|
||||
*
|
||||
@ -488,7 +489,7 @@ public class Socket
|
||||
public InetAddress getLocalAddress()
|
||||
{
|
||||
if (! isBound())
|
||||
return null;
|
||||
return InetAddress.ANY_IF;
|
||||
|
||||
InetAddress addr = null;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user