Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4906875

java.io.LineNumberReader skip(long) does not document negative parameter value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 5.0
    • docs
    • b28
    • sparc
    • solaris_2.6
    • Verified



      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

      ======================================================================

            shommel Scott Hommel (Inactive)
            sdasunw Sda Sda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: