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

Improve specification of InflaterInputStream.fill()

    XMLWordPrintable

Details

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

    Description

      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`.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: