From: Michael Koch Date: Tue, 11 Feb 2003 06:50:13 +0000 (+0000) Subject: 2003-02-11 Michael Koch X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c34ce2a63744231051665086321901cf5331588c;p=gcc.git 2003-02-11 Michael Koch * java/nio/channels/SelectionKey.java (OP_ACCEPT, OP_CONNECT, OP_READ, OP_WRITE): Initialize with correct values. From-SVN: r62683 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 4cc93f3f747..81deeecf802 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,9 @@ +2003-02-11 Michael Koch + + * java/nio/channels/SelectionKey.java + (OP_ACCEPT, OP_CONNECT, OP_READ, OP_WRITE): Initialize with correct + values. + 2003-02-11 Michael Koch * java/nio/channels/DatagramChannel.java diff --git a/libjava/java/nio/channels/SelectionKey.java b/libjava/java/nio/channels/SelectionKey.java index 8d06a301143..39b66f1902a 100644 --- a/libjava/java/nio/channels/SelectionKey.java +++ b/libjava/java/nio/channels/SelectionKey.java @@ -43,10 +43,10 @@ package java.nio.channels; */ public abstract class SelectionKey { - public static final int OP_ACCEPT = 1<<0; - public static final int OP_CONNECT = 1<<1; - public static final int OP_READ = 1<<2; - public static final int OP_WRITE = 1<<3; + public static final int OP_ACCEPT = 16; + public static final int OP_CONNECT = 8; + public static final int OP_READ = 1; + public static final int OP_WRITE = 4; Object attached;