Commons IO
  1. Commons IO
  2. IO-306

ReaderInputStream#read(byte[] b, int off, int len) should always return 0 for length == 0

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None

      Description

      The method read(byte[] b, int off, int len) should always return 0 if the requested length == 0, even if the stream is empty or at EOF, as that is how the overridden java.io.InputStream method is documented to behave.

        Activity

        Sebb created issue -
        Sebb made changes -
        Field Original Value New Value
        Fix Version/s 2.2 [ 12318448 ]
        Affects Version/s 2.1 [ 12316027 ]
        Sebb made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Gary Gregory added a comment -

        Version 2.2 has been released and addresses this issue.

        Show
        Gary Gregory added a comment - Version 2.2 has been released and addresses this issue.
        Gary Gregory made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        16m 24s 1 Sebb 13/Mar/12 17:42
        Resolved Resolved Closed Closed
        16d 3h 46m 1 Gary Gregory 29/Mar/12 22:29

          People

          • Assignee:
            Unassigned
            Reporter:
            Sebb
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development