Commit 6e42faef by Stephen Crawley Committed by Michael Koch

SocketImpl.java (toString): Display the remote address of an unconnected server…

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
parent 1ce4e666
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,
......
......@@ -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 + "]";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment