harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Zhang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-960) [classlib][nio]FileChannelImpl.write(ByteBuffer[] buffers, int offset, int length) checks wrong range.
Date Fri, 28 Jul 2006 09:14:15 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-960?page=comments#action_12424036 ] 
            
Andrew Zhang commented on HARMONY-960:
--------------------------------------

Hi Paulex,

The fix looks good, many thanks!

Best regards,
Andrew

> [classlib][nio]FileChannelImpl.write(ByteBuffer[] buffers, int offset, int length) checks
wrong range.
> ------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-960
>                 URL: http://issues.apache.org/jira/browse/HARMONY-960
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Andrew Zhang
>         Assigned To: Paulex Yang
>         Attachments: nio.diff
>
>
> Hello,
>     FileChannelImpl.write(ByteBuffer[] buffers, int offset, int length) contains a bug.
It should write all buffers whose offset is larger than(equals to) the given offset and less
than length plus offset. Currently, it uses length instead of length plus offset.
>     It is in line: 628
> write(ByteBuffer[] buffers, int offset, int length){
>    ......
>     for (int i = offset; i < length; i++) // must be " i < length + offset"
>    ......
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message