< prev index next >
test/jdk/java/io/OutputStream/WriteParams.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1998, 1999, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 21,31 ****
* questions.
*/
/*
* @test
! * @bug 1267039 1267043 4193729
* @summary Check for correct handling of parameters to
* XXXXOutputStream.write(b, off, len).
*
*/
--- 21,31 ----
* questions.
*/
/*
* @test
! * @bug 1267039 1267043 4193729 4358774
* @summary Check for correct handling of parameters to
* XXXXOutputStream.write(b, off, len).
*
*/
*** 150,159 ****
--- 150,164 ----
DeflaterOutputStream dfos = new DeflaterOutputStream(new MyOutputStream());
doTest(dfos);
doTest1(dfos);
dfos.close();
+ OutputStream nos = OutputStream.nullOutputStream();
+ doTest(nos);
+ doTest1(nos);
+ nos.close();
+
/* cleanup */
fn.delete();
}
}
< prev index next >