Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 10305 invoked from network); 15 Jul 2010 10:00:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Jul 2010 10:00:20 -0000 Received: (qmail 2083 invoked by uid 500); 15 Jul 2010 10:00:20 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 1981 invoked by uid 500); 15 Jul 2010 10:00:18 -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 1965 invoked by uid 99); 15 Jul 2010 10:00:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jul 2010 10:00:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jul 2010 10:00:15 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6F9xrj6018117 for ; Thu, 15 Jul 2010 09:59:53 GMT Message-ID: <15117517.393831279187993529.JavaMail.jira@thor> Date: Thu, 15 Jul 2010 05:59:53 -0400 (EDT) From: "Xiao Shu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-6576) [classlib][luni] PipedOutputStream.write throws PipeNotConnected Exception In-Reply-To: <10899387.279911278660949976.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xiao Shu updated HARMONY-6576: ------------------------------ Attachment: Harmony-6576.diff The patch contains the fix and unit test. > [classlib][luni] PipedOutputStream.write throws PipeNotConnected Exception > -------------------------------------------------------------------------- > > Key: HARMONY-6576 > URL: https://issues.apache.org/jira/browse/HARMONY-6576 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M14 > Reporter: Xiao Shu > Priority: Minor > Attachments: Harmony-6576.diff > > > The below testcase throws PipeNotConnected exception when trying to write > a zero byte array just after closing the stream. > The exception should not be thrown as there is no byte to write. > import java.io.*; > public class Test{ > public static void main(String [] args){ > try{ > PipedInputStream in = new PipedInputStream(); > PipedOutputStream out = new PipedOutputStream(in); > out.close(); > out.write(new byte[0]); > out.close(); > }catch(IOException e ){ > e.printStackTrace(); > } > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.