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-6570) [classlib][luni] BufferedOutputStream.write throws IOE
Date Wed, 07 Jul 2010 05:20:49 GMT
[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

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){
                        BufferedOutputStream out =  new BufferedOutputStream(new FileOutputStream("out.txt"));
                }catch(NullPointerException npe){                         
                        System.out.println("TEST PASSED");
                catch(IOException e ){
                catch(Exception 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