SocketImpl.java (toString): Display the remote address of an unconnected server socket as "0.0.0.0/0.0.0.0".

2003-08-01  Stephen Crawley <crawley@dstc.edu.au>

	* java/net/SocketImpl.java (toString): Display the remote address
	of an unconnected server socket as "0.0.0.0/0.0.0.0".

From-SVN: r70069
This commit is contained in:
Stephen Crawley 2003-08-01 21:08:33 +00:00 committed by Michael Koch
parent 1ce4e666b2
commit 6e42faef6d
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-08-01 Stephen Crawley <crawley@dstc.edu.au>
* java/net/SocketImpl.java (toString): Display the remote address
of an unconnected server socket as "0.0.0.0/0.0.0.0".
2003-08-01 Sascha Brawer <brawer@dandelis.ch>
* javax/swing/border/BevelBorder.java,

View File

@ -276,7 +276,8 @@ public abstract class SocketImpl implements SocketOptions
*/
public String toString()
{
return "[addr=" + address
return "[addr=" + ((address == null) ? "0.0.0.0/0.0.0.0" :
address.toString())
+ ",port=" + port
+ ",localport=" + localport + "]";
}