Commit 5d79367d by Michael Koch Committed by Michael Koch

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
parent c0dce235
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,
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment