diff options
Diffstat (limited to 'libjava/java')
-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. |