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
This commit is contained in:
committed by
Michael Koch
parent
c0dce2359c
commit
5d79367d7a
@@ -374,7 +374,8 @@ public class ServerSocket
|
||||
&& ! ((PlainSocketImpl) getImpl()).isInChannelOperation())
|
||||
throw new IllegalBlockingModeException();
|
||||
|
||||
impl.accept(socket.getImpl());
|
||||
impl.accept(socket.impl);
|
||||
socket.implCreated = true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user