Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 89038 invoked from network); 18 Jun 2007 09:50:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jun 2007 09:50:50 -0000 Received: (qmail 93945 invoked by uid 500); 18 Jun 2007 09:50:51 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 93922 invoked by uid 500); 18 Jun 2007 09:50:51 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 93776 invoked by uid 99); 18 Jun 2007 09:50:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2007 02:50:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2007 02:50:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 652497141E3 for ; Mon, 18 Jun 2007 02:50:26 -0700 (PDT) Message-ID: <22664307.1182160226412.JavaMail.jira@brutus> Date: Mon, 18 Jun 2007 02:50:26 -0700 (PDT) From: "Alexei Zakharov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-4177) [classlib][io] Unnecessary data copying in BufferedOutputStream.write() method In-Reply-To: <27156105.1181838686372.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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.