From 8864445c659aee2b95b55fc75419cd40a44883cd Mon Sep 17 00:00:00 2001 From: mkoch Date: Thu, 18 Mar 2004 21:32:22 +0000 Subject: 2004-03-18 Michael Koch * java/nio/channels/spi/AbstractSelectableChannel.java (keys): Initialize at declaration. (locate): keys cant be null. (add): Removed. (addSelectionKey): New method. (removeSelectionKey): New method. * java/nio/channels/spi/AbstractSelectionKey.java (cancel): Call AbstractSelector.cancelKey(SelectionKey key). * java/nio/channels/spi/AbstractSelector.java (provider): Javadoc added. (cancelledKeys): Javadoc added. (cancelKey): Javadoc added, add key to cancelledKeys. (deregister): Implemented. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79640 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/nio/channels/spi/AbstractSelectionKey.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libjava/java/nio/channels/spi/AbstractSelectionKey.java') diff --git a/libjava/java/nio/channels/spi/AbstractSelectionKey.java b/libjava/java/nio/channels/spi/AbstractSelectionKey.java index 0cd5ee104e1..78e0a82cb4a 100644 --- a/libjava/java/nio/channels/spi/AbstractSelectionKey.java +++ b/libjava/java/nio/channels/spi/AbstractSelectionKey.java @@ -1,5 +1,5 @@ /* AbstractSelectionKey.java -- - Copyright (C) 2002, 2003 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -61,8 +61,7 @@ public abstract class AbstractSelectionKey { if (isValid()) { - // FIXME: implement this. - //selector().cancelledKeys().add (this); + ((AbstractSelector) selector()).cancelKey(this); cancelled = true; } } -- cgit v1.2.3