diff options
Diffstat (limited to 'libjava/classpath/java/net/Socket.java')
-rw-r--r-- | libjava/classpath/java/net/Socket.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libjava/classpath/java/net/Socket.java b/libjava/classpath/java/net/Socket.java index 9432a6be1d8..0ff6e6ea032 100644 --- a/libjava/classpath/java/net/Socket.java +++ b/libjava/classpath/java/net/Socket.java @@ -91,8 +91,9 @@ public class Socket /** * True if the socket is bound. + * Package private so it can be set from ServerSocket when accept is called. */ - private boolean bound; + boolean bound; /** * True if input is shutdown. @@ -324,7 +325,9 @@ public class Socket } catch (IOException e) { - throw new SocketException(e.getMessage()); + SocketException se = new SocketException(e.toString()); + se.initCause(e); + throw se; } return impl; @@ -481,7 +484,7 @@ public class Socket /** * Returns the local address to which this socket is bound. If this socket * is not connected, then a wildcard address, for which - * @see isAnyLocalAddress() is <code>true</code>, is returned. + * @see InetAddress#isAnyLocalAddress() is <code>true</code>, is returned. * * @return The local address * |