Index: java/net/Socket.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/net/Socket.java,v retrieving revision 1.46 diff -u -r1.46 Socket.java --- java/net/Socket.java 20 Jul 2004 17:47:59 -0000 1.46 +++ java/net/Socket.java 14 Sep 2004 16:44:04 -0000 @@ -479,7 +479,8 @@ /** * Returns the local address to which this socket is bound. If this socket - * is not connected, then null is returned. + * is not connected, then a wildcard address, for which + * @see isAnyLocalAddress() is true, is returned. * * @return The local address * @@ -488,7 +489,7 @@ public InetAddress getLocalAddress() { if (! isBound()) - return null; + return InetAddress.ANY_IF; InetAddress addr = null;