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

DataInput.skipBytes() spec inconsistent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • core-libs
    • None
    • beta
    • generic, sparc
    • generic, solaris_2.6, solaris_7
    • Verified

      The documentation for java.io.DataInput.skipBytes, as it appears in JDK 1.3
      RC1 and as per the specification maintenance information contains two
      errors:

      1. The main description states "this method never throws EOFException" but
      the Throws section states " EOFException if this stream reaches the end
      before skipping all bytes".

      The Throw section is incorrect.

      2. The main description states "Makes an attempt to skip over n bytes of
      data from the input stream, discarding the skipped bytes. However, it may
      skip over some smaller number of bytes, possibly zero", but the Return
      section states "Returns: the number of bytes skipped, which is always n."

      The Return section is incorrect.

            mmcclosksunw Michael Mccloskey (Inactive)
            nsanjeevsunw Naveen Sanjeeva (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: