You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Xiao Shu (JIRA)" <ji...@apache.org> on 2010/07/09 09:45:49 UTC
[jira] Updated: (HARMONY-6576) [classlib][luni]
PipedOutputStream.write throws PipeNotConnected Exception
[ https://issues.apache.org/jira/browse/HARMONY-6576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiao Shu updated HARMONY-6576:
------------------------------
Summary: [classlib][luni] PipedOutputStream.write throws PipeNotConnected Exception (was: PipedOutputStream.write throws PipeNotConnected Exception)
> [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
>
> 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.