commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (Commented) (JIRA)" <>
Subject [jira] [Commented] (IO-311) ignores the offset parameter
Date Thu, 22 Mar 2012 16:42:22 GMT


Michael McCandless commented on IO-311:

Maybe this bug should be fixed before releasing 2.2?  It's fairly nasty.

When used this method (readFully) in Lucene, the bug (completely ignoring the offset parameter)
caused immediate failures in our tests.

Also, this is new code in 2.2 I think?  I see one other readFully in 2.1 (in SwappedDataInputStream),
and it looks correct (respects the incoming offset).
> ignores the offset parameter
> -------------------------------------------------------------
>                 Key: IO-311
>                 URL:
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>            Reporter: Robert Muir
>         Attachments: IO-311.patch
> input, byte[] buffer, int offset, int length) and
> read(Reader input, char[] buffer, int offset, int length) don't take the 
> offset parameter into account...

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message