diff options
author | Michael Koch <konqueror@gmx.de> | 2004-04-21 10:41:23 +0000 |
---|---|---|
committer | Michael Koch <konqueror@gmx.de> | 2004-04-21 10:41:23 +0000 |
commit | d68f835c6e736fd6e6d38be1c7f94f8b68a20022 (patch) | |
tree | 7bb5e231ca77b6c39addf6c518b72d6f5b9dd678 | |
parent | e216f13564b9ad7c44b05f0bdc962946e8ac713b (diff) | |
download | classpath-d68f835c6e736fd6e6d38be1c7f94f8b68a20022.tar.gz |
2004-04-21 Michael Koch <konqueror@gmx.de>
* java/net/Socket.java
(impl): Made package-private.
* java/net/ServerSocket.java
(implAccept): Access Socket.impl field directly.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | java/net/ServerSocket.java | 3 | ||||
-rw-r--r-- | java/net/Socket.java | 6 |
3 files changed, 13 insertions, 3 deletions
@@ -1,3 +1,10 @@ +2004-04-21 Michael Koch <konqueror@gmx.de> + + * java/net/Socket.java + (impl): Made package-private. + * java/net/ServerSocket.java + (implAccept): Access Socket.impl field directly. + 2004-04-20 Michael Koch <konqueror@gmx.de> * java/text/AttributedCharacterIterator.java diff --git a/java/net/ServerSocket.java b/java/net/ServerSocket.java index e2f031416..e507f0b3b 100644 --- a/java/net/ServerSocket.java +++ b/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/java/net/Socket.java b/java/net/Socket.java index 789e40616..43c6f3c3d 100644 --- a/java/net/Socket.java +++ b/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. |