* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77317
138bc75d-0d04-0410-961f-
82ee72b054a4
+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>
* javax/swing/SwingUtilities.java: Many new functions.
/* NIOServerSocket.java --
- Copyright (C) 2003 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
*/
public final class NIOServerSocket extends ServerSocket
{
- private PlainSocketImpl impl;
private ServerSocketChannelImpl channel;
protected NIOServerSocket (ServerSocketChannelImpl channel)
if (!isOpen())
throw new ClosedChannelException();
- if (!connectionPending)
+ if (!isConnected() && !connectionPending)
throw new NoConnectionPendingException();
if (isConnected())