You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Regis Xu (JIRA)" <ji...@apache.org> on 2010/07/09 06:31:50 UTC
[jira] Resolved: (HARMONY-6570) [classlib][luni]
BufferedOutputStream.write throws IOE
[ https://issues.apache.org/jira/browse/HARMONY-6570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Regis Xu resolved HARMONY-6570.
-------------------------------
Fix Version/s: 5.0M15
Resolution: Fixed
Thanks Xiao Shu!
The patch was applied at r962400, please verify.
> [classlib][luni] BufferedOutputStream.write throws IOE
> ------------------------------------------------------
>
> Key: HARMONY-6570
> URL: https://issues.apache.org/jira/browse/HARMONY-6570
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M14
> Environment: Ubuntu 10.04, x86_32
> Reporter: Xiao Shu
> Assignee: Regis Xu
> Fix For: 5.0M15
>
> Attachments: jira6570.diff
>
>
> while writing a null array after closing the stream it should throw Null pointer exception.
> But it throws IO Exception
> Error output:
> ------------
> java.io.IOException: Stream is closed
> at java.io.BufferedOutputStream.write(BufferedOutputStream.java:130)
> at IoStream.main(IoStream.java:10)
> recreate it using the below testcase.
> import java.io.*;
> public class Test{
> public static void main(String [] args){
> try{
> BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream("out.txt"));
> out.close();
> out.write(null,0,1);
> out.close();
> }catch(NullPointerException npe){
> System.out.println("TEST PASSED");
> }
> catch(IOException e ){
> e.printStackTrace();
> }
> catch(Exception e ){
> e.printStackTrace();
> }
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.