diff --git a/src/share/classes/java/nio/channels/SelectionKey.java b/src/share/classes/java/nio/channels/SelectionKey.java
index 7acb692ccd074ef1b5816906dceda958128f66fd..00fd36f463a894a0c29bdf440d801de12f1e8129 100644
--- a/src/share/classes/java/nio/channels/SelectionKey.java
+++ b/src/share/classes/java/nio/channels/SelectionKey.java
@@ -191,7 +191,7 @@ public abstract class SelectionKey {
* @throws IllegalArgumentException
* If a bit in the set does not correspond to an operation that
* is supported by this key's channel, that is, if
- * set & ~(channel().validOps()) != 0
+ * (ops & ~channel().validOps()) != 0
*
* @throws CancelledKeyException
* If this key has been cancelled