Permalink
Browse files

Fix JRUBY-5936: IO.select throws ArrayIndexOutOfBoundsException

* Patch by Javier Alcazar
  • Loading branch information...
1 parent d8453fb commit ce7c4e18e1c1c2fe75c38c91276fc91bd7f4d9f1 @headius headius committed Aug 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit ce7c4e1

Please sign in to comment.