harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiao Shu (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6576) PipedOutputStream.write throws PipeNotConnected Exception
Date Fri, 09 Jul 2010 07:35:49 GMT
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

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){
                        PipedInputStream in = new PipedInputStream();
                        PipedOutputStream out = new PipedOutputStream(in);               
                        out.write(new byte[0]);
                }catch(IOException e ){

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

View raw message