Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix JRUBY-5936: IO.select throws ArrayIndexOutOfBoundsException

* Patch by Javier Alcazar
  • Loading branch information...
commit ce7c4e18e1c1c2fe75c38c91276fc91bd7f4d9f1 1 parent d8453fb
@headius headius authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/org/jruby/util/io/SelectBlob.java
View
2  src/org/jruby/util/io/SelectBlob.java
@@ -383,7 +383,7 @@ private Selector getSelector(ThreadContext context) throws IOException {
private boolean[] getUnselectableWrites() {
if (unselectableWrites == null) {
- unselectableWrites = new boolean[readSize];
+ unselectableWrites = new boolean[writeSize];
}
return unselectableWrites;
}
Please sign in to comment.
Something went wrong with that request. Please try again.