diff options
| author | mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-15 23:20:01 +0000 |
|---|---|---|
| committer | mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-15 23:20:01 +0000 |
| commit | 3b3101d8b5ae4f08a16c0b7111da6cad41bbd282 (patch) | |
| tree | a5eb7cf42a51869cc8aa1fad7ad6a90cca47fdd8 /libjava/classpath/java/net/Socket.java | |
| parent | 7e55c49d7d91ef9f09e93c1100119b1ab3652446 (diff) | |
| download | gcc-3b3101d8b5ae4f08a16c0b7111da6cad41bbd282.tar.gz | |
Imported GNU Classpath 0.19 + gcj-import-20051115.
* sources.am: Regenerated.
* Makefile.in: Likewise.
* scripts/makemake.tcl: Use glob -nocomplain.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107049 138bc75d-0d04-0410-961f-82ee72b054a4
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 * |
