Commit 99814868 by Michael Koch Committed by Michael Koch

2004-02-05 Michael Koch <konqueror@gmx.de>

	* gnu/java/nio/NIOServerSocket.java
	(impl): Unused, removed.
	* gnu/java/nio/SocketChannelImpl.java
	(finnishConnect): Don't throw NoConnectionPendingException if not
	connected or no connection pending.

From-SVN: r77317
parent 92ff3e43
2004-02-05 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/NIOServerSocket.java
(impl): Unused, removed.
* gnu/java/nio/SocketChannelImpl.java
(finnishConnect): Don't throw NoConnectionPendingException if not
connected or no connection pending.
2004-02-02 Graydon Hoare <graydon@redhat.com> 2004-02-02 Graydon Hoare <graydon@redhat.com>
* javax/swing/SwingUtilities.java: Many new functions. * javax/swing/SwingUtilities.java: Many new functions.
......
/* NIOServerSocket.java -- /* NIOServerSocket.java --
Copyright (C) 2003 Free Software Foundation, Inc. Copyright (C) 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -50,7 +50,6 @@ import java.nio.channels.SocketChannel; ...@@ -50,7 +50,6 @@ import java.nio.channels.SocketChannel;
*/ */
public final class NIOServerSocket extends ServerSocket public final class NIOServerSocket extends ServerSocket
{ {
private PlainSocketImpl impl;
private ServerSocketChannelImpl channel; private ServerSocketChannelImpl channel;
protected NIOServerSocket (ServerSocketChannelImpl channel) protected NIOServerSocket (ServerSocketChannelImpl channel)
......
...@@ -174,7 +174,7 @@ public final class SocketChannelImpl extends SocketChannel ...@@ -174,7 +174,7 @@ public final class SocketChannelImpl extends SocketChannel
if (!isOpen()) if (!isOpen())
throw new ClosedChannelException(); throw new ClosedChannelException();
if (!connectionPending) if (!isConnected() && !connectionPending)
throw new NoConnectionPendingException(); throw new NoConnectionPendingException();
if (isConnected()) if (isConnected())
......
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