diff options
author | Michael Koch <konqueror@gmx.de> | 2004-04-22 06:49:53 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2004-04-22 06:49:53 +0000 |
commit | 5d79367d7af65892dff13ab3d0e0747d71ddd6e8 (patch) | |
tree | 2e13d00497fea2046fdc73cd3143777cdeb93a23 /libjava/java/net | |
parent | c0dce2359caa576d0978606879fc489a603b3045 (diff) | |
download | gcc-5d79367d7af65892dff13ab3d0e0747d71ddd6e8.zip gcc-5d79367d7af65892dff13ab3d0e0747d71ddd6e8.tar.gz gcc-5d79367d7af65892dff13ab3d0e0747d71ddd6e8.tar.bz2 |
2004-04-22 Michael Koch <konqueror@gmx.de>
* java/net/Socket.java
(impl): Made package-private.
* java/net/ServerSocket.java
(implAccept): Access Socket.impl field directly.
From-SVN: r81005
Diffstat (limited to 'libjava/java/net')
-rw-r--r-- | libjava/java/net/ServerSocket.java | 3 | ||||
-rw-r--r-- | libjava/java/net/Socket.java | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/libjava/java/net/ServerSocket.java b/libjava/java/net/ServerSocket.java index e2f0314..e507f0b 100644 --- a/libjava/java/net/ServerSocket.java +++ b/libjava/java/net/ServerSocket.java @@ -374,7 +374,8 @@ public class ServerSocket && ! ((PlainSocketImpl) getImpl()).isInChannelOperation()) throw new IllegalBlockingModeException(); - impl.accept(socket.getImpl()); + impl.accept(socket.impl); + socket.implCreated = true; } /** diff --git a/libjava/java/net/Socket.java b/libjava/java/net/Socket.java index 789e406..43c6f3c 100644 --- a/libjava/java/net/Socket.java +++ b/libjava/java/net/Socket.java @@ -78,13 +78,15 @@ public class Socket /** * The implementation object to which calls are redirected */ - private SocketImpl impl; + // package-private because ServerSocket.implAccept() needs to access it. + SocketImpl impl; /** * True if socket implementation was created by calling their * create() method. */ - private boolean implCreated; + // package-private because ServerSocket.implAccept() needs to access it. + boolean implCreated; /** * True if the socket is bound. |