summaryrefslogtreecommitdiffstats
path: root/libjava/java/nio/channels
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-24 10:44:18 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-24 10:44:18 +0000
commit710b1452e5c5244317b9954e90b4c9283106b679 (patch)
tree9b7c7a17527d4c0271c30763af092c759f04c29c /libjava/java/nio/channels
parente993f6d9df471c8c746484265657e34767f253e4 (diff)
downloadppe42-gcc-710b1452e5c5244317b9954e90b4c9283106b679.tar.gz
ppe42-gcc-710b1452e5c5244317b9954e90b4c9283106b679.zip
2004-11-24 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/NIOServerSocket.java: Added email to @author tag. * java/nio/DirectByteBufferImpl.java: Moved native methods to java.nio.VMDirectByteBuffer class. * java/nio/MappedByteBufferImpl.java: Use native methods from java.nio.VMDirectByteBuffer class. * java/nio/VMDirectByteBuffer.java: New file, * java/nio/natDirectByteBufferImpl.cc: Moved all methods into java.nio.VMDirectByteBuffer class. * java/nio/channels/spi/AbstractSelectableChannel.java (register): Only re-use valid keys. * Makefile.am: Added java/nio/VMDirectByteBuffer.java. * Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91146 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/nio/channels')
-rw-r--r--libjava/java/nio/channels/spi/AbstractSelectableChannel.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/java/nio/channels/spi/AbstractSelectableChannel.java b/libjava/java/nio/channels/spi/AbstractSelectableChannel.java
index ccc48c93c95..2255af06d36 100644
--- a/libjava/java/nio/channels/spi/AbstractSelectableChannel.java
+++ b/libjava/java/nio/channels/spi/AbstractSelectableChannel.java
@@ -35,6 +35,7 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
+
package java.nio.channels.spi;
import java.io.IOException;
@@ -45,7 +46,6 @@ import java.nio.channels.Selector;
import java.util.LinkedList;
import java.util.ListIterator;
-
public abstract class AbstractSelectableChannel extends SelectableChannel
{
private boolean blocking = true;
@@ -226,7 +226,7 @@ public abstract class AbstractSelectableChannel extends SelectableChannel
{
key = locate(selector);
- if (key != null)
+ if (key != null && key.isValid())
{
if (att != null)
key.attach(att);
OpenPOWER on IntegriCloud