You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Zakharov (JIRA)" <ji...@apache.org> on 2007/06/18 11:50:26 UTC

[jira] Assigned: (HARMONY-4177) [classlib][io] Unnecessary data copying in BufferedOutputStream.write() method

     [ https://issues.apache.org/jira/browse/HARMONY-4177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov reassigned HARMONY-4177:
----------------------------------------

    Assignee: Alexei Zakharov

> [classlib][io] Unnecessary data copying in BufferedOutputStream.write() method 
> -------------------------------------------------------------------------------
>
>                 Key: HARMONY-4177
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4177
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Roman S. Bushmanov
>            Assignee: Alexei Zakharov
>         Attachments: H-4177.patch, Test.java
>
>
> According to specification, if the data to write is longer than the free buffer space than the buffer should be flushed first to avoid unnecessary data copying.
> Harmony behaves differently. The buffer contents is written to underlying output stream only when it is full.
> To reproduce the issue, please run the attached testcase.
> The expected output is  "ab" while harmony prints "abc".
> Affected test: 
> functional/org/apache/harmony/test/func/api/java/io/BufferedOutputStream/BufferedOutputStreamTest.xml
> (see HARMONY-3528) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.