diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-08-01 21:08:33 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-08-01 21:08:33 +0000 |
commit | 202a0eb5c7c7cf2f7d6edceb86ef13a2704b0046 (patch) | |
tree | 8f8453dc1d12ebe41ddf0495d33e159e90db2b3e /libjava/java/net/SocketImpl.java | |
parent | 26be54bba4b6a6558a0ca0a074e39e5b002ff8b8 (diff) | |
download | gcc-202a0eb5c7c7cf2f7d6edceb86ef13a2704b0046.tar.gz |
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".
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70069 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/net/SocketImpl.java')
-rw-r--r-- | libjava/java/net/SocketImpl.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/java/net/SocketImpl.java b/libjava/java/net/SocketImpl.java index 14101513e09..e43b49ed599 100644 --- a/libjava/java/net/SocketImpl.java +++ b/libjava/java/net/SocketImpl.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 + "]"; } |