Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-799

[ReaderInputStream] Repeated calls to read() while EOF should keep returning -1

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.12.0
    • 2.14.0
    • Streams/Writers
    • None
    • Ubuntu x64, Java 11.

    Description

      Once a ReaderInputStream reaches the end of the input, it only returns -1 once. Subsequent calls to read() throw an IllegalStateException. This undocumented and unexpected.

      Attachments

        Issue Links

          Activity

            People

              ggregory Gary D. Gregory
              jeroen_123 jeroen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: