You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Mike Drob (Jira)" <ji...@apache.org> on 2024/04/02 23:49:00 UTC

[jira] [Created] (IO-853) BoundedInputStream.reset() not updating count

Mike Drob created IO-853:
----------------------------

             Summary: BoundedInputStream.reset() not updating count
                 Key: IO-853
                 URL: https://issues.apache.org/jira/browse/IO-853
             Project: Commons IO
          Issue Type: Bug
          Components: Streams/Writers
    Affects Versions: 2.16.0
            Reporter: Mike Drob


In [https://github.com/apache/commons-io/commit/99702ec5ce4c25a909299c4f4a8be616d8ce04dc] BoundedInputStream was modified to use a CountingInputStream, and reset() no longer set the count to the mark, because count was retrieved from the other stream.

Then in [https://github.com/apache/commons-io/commit/812d8a4b53d9758b4f081d9b98a70ea9ef131a0e] the count field was added back in but reset() was not fixed to update the value of count when called.

This causes a regression, found when attempting to upgrade commons-compress.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)