< prev index next >

test/jdk/java/io/OutputStream/WriteParams.java

Print this page
rev 48082 : 4358774: Add null InputStream and OutputStream
Reviewed-by: XXX
rev 47216 : 8187443: Forest Consolidation: Move files to unified layout
Reviewed-by: darcy, ihse

*** 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, 2017, 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.nullStream(); + doTest(nos); + doTest1(nos); + nos.close(); + /* cleanup */ fn.delete(); } }
< prev index next >