Name: dsR10051 Date: 08/14/2003
Filed By : SPB JCK team (###@###.###)
JDK : java full version "1.5.0-beta-b13"
JCK : 1.5
Platform[s] : Solaris
switch/Mode :
JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto
Failing Test [s] : N/A
Specification excerpt:
======================
--------- J2SE API spec v.1.5 ---------
...
/**
* Skip characters.
*
* @param n The number of characters to skip
*
* @return The number of characters actually skipped
*
* @exception IOException If an I/O error occurs
*/
public long skip(long n) throws IOException {
if (n < 0)
throw new IllegalArgumentException("skip() value is negative");
...
---------- end-of-excerpt ---------------
Problem description
===================
Javadoc for method of class java.io.LineNumberReader
public long skip(long n) throws IOException
does not declare IllegalArgumentException that method throws
if parameter value is negative long. It should be fixed.
JCK test source location:
==========================
/java/re/jck/1.5/promoted/latest/JCK-runtime-15/tests
======================================================================