ArrayIndexoutofBoundsException out of ReaderInputStream.read method
--------------------------------------------------------------------
Key: JRUBY-4632
URL: http://jira.codehaus.org/browse/JRUBY-4632
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.4
Reporter: Vladimir Sizikov
Fix For: JRuby 1.5
This bug is from github's pull request:
This patch fixes the ReaderInputStream.read(byte[] b, int off, int len) method.
It would fail with ArrayIndexoutofBoundsException before because it didn't read
minimum of underlying byte array's remaining length vs requested read length.
this also increments the position field by number of bytes copied/read.
The fix:
http://github.com/aptana/jruby/commit/0e4cfb4e8ec0b4297dd354a1282e09cb062d19c2
It would be nice to have a reproducible test case though!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email