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

java.io.BufferedInputStream.skip can throw away data

XMLWordPrintable

    • 1.2beta3
    • sparc
    • solaris_2.5
    • Not verified

      In the BufferedInputStream.skip method, if the buffer does not already contain
      all the available bytes to be skipped, it just calls skip on the underlying
      input stream for the rest of them, which effectively throws away those bytes.

      These bytes should be saved if they are within the bounds of the current
      set marklimit so if the stream is reset, they can be actually read in the
      future.

            mmcclosksunw Michael Mccloskey (Inactive)
            peterjones Peter Jones (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: