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

Improve specification of InflaterInputStream.fill()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • None
    • core-libs

      Currently the API specification of `InflaterInputStream.fill()` reads as follows:

      ```
      protected void fill()
                   throws IOException
      Fills input buffer with more data to decompress.

      Throws:
          IOException - if an I/O error has occurred
      ```

      It doesn't mention that `fill()` throws an `java.io.EOFException` if the underlying input stream contains no more data.

      In addition the specification should mention that `fill()` sets the protected `len` field of `InflaterInputStream`.

            lancea Lance Andersen
            simonis Volker Simonis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: