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:
Michael Koch 2004-04-22 06:49:53 +00:00 committed by Michael Koch
parent c0dce2359c
commit 5d79367d7a
3 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,10 @@
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.
2004-04-22 Dalibor Topic <robilad@kaffe.org>
* java/util/prefs/Preferences.java,

View File

@ -374,7 +374,8 @@ public class ServerSocket
&& ! ((PlainSocketImpl) getImpl()).isInChannelOperation())
throw new IllegalBlockingModeException();
impl.accept(socket.getImpl());
impl.accept(socket.impl);
socket.implCreated = true;
}
/**

View File

@ -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.