Name: sdR10048 Date: 04/09/2004
Filed By : SPB JCK team (###@###.###)
JDK : build 1.5.0-beta2-b46
Specification excerpt:
======================
--------- J2SE API spec v.1.5 ---------
...
Quote
J2SE CCC 4156573: java.io.BufferedWriter.write(String, int, int) allows negative length:
For Writer.write(String, int, int):
***************
*** 133,138 ****
--- 133,143 ----
* @param off Offset from which to start writing characters
* @param len Number of characters to write
*
+ * @exception IndexOutOfBoundsException
+ * If <tt>off</tt> is negative, or <tt>len</tt> is negative,
+ * or <tt>off+len</tt> is negative or greater than the length
+ * of the given string
+ *
* @exception IOException If an I/O error occurs
*/
public void write(String str, int off, int len) throws IOException {
Quote from JDK1.5.0 build beta2-b46:
public void write(String str,
int off,
int len)
throws IOException
Write a portion of a string.
Parameters:
str - A String
off - Offset from which to start writing characters
len - Number of characters to write
Throws:
IOException - If an I/O error occurs
...
---------- end-of-excerpt ---------------
Problem description
===================
The designated CCC request is not integrated into java/io/Writer.java.
JCK test source location:
==========================
/java/re/jck/1.5/promoted/latest/JCK-runtime-15/tests
======================================================================
Filed By : SPB JCK team (###@###.###)
JDK : build 1.5.0-beta2-b46
Specification excerpt:
======================
--------- J2SE API spec v.1.5 ---------
...
Quote
J2SE CCC 4156573: java.io.BufferedWriter.write(String, int, int) allows negative length:
For Writer.write(String, int, int):
***************
*** 133,138 ****
--- 133,143 ----
* @param off Offset from which to start writing characters
* @param len Number of characters to write
*
+ * @exception IndexOutOfBoundsException
+ * If <tt>off</tt> is negative, or <tt>len</tt> is negative,
+ * or <tt>off+len</tt> is negative or greater than the length
+ * of the given string
+ *
* @exception IOException If an I/O error occurs
*/
public void write(String str, int off, int len) throws IOException {
Quote from JDK1.5.0 build beta2-b46:
public void write(String str,
int off,
int len)
throws IOException
Write a portion of a string.
Parameters:
str - A String
off - Offset from which to start writing characters
len - Number of characters to write
Throws:
IOException - If an I/O error occurs
...
---------- end-of-excerpt ---------------
Problem description
===================
The designated CCC request is not integrated into java/io/Writer.java.
JCK test source location:
==========================
/java/re/jck/1.5/promoted/latest/JCK-runtime-15/tests
======================================================================