harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6576) [classlib][luni] PipedOutputStream.write throws PipeNotConnected Exception
Date Sun, 25 Jul 2010 01:37:51 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892053#action_12892053
] 

Hudson commented on HARMONY-6576:
---------------------------------

Integrated in Harmony-1.5-head-linux-x86_64 #901 (See [http://hudson.zones.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/901/])
    Apply patch for HARMONY-6576: [classlib][luni] 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
>            Assignee: Regis Xu
>            Priority: Minor
>             Fix For: 5.0M15
>
>         Attachments: Harmony-6576.diff, Harmony-6576_v2.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.


Mime
View raw message