[
https://issues.apache.org/jira/browse/IO-867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18080752#comment-18080752
]
Gary D. Gregory edited comment on IO-867 at 5/13/26 7:12 PM:
-------------------------------------------------------------
[~nielsm5], [~ciskyper]
A fix is now is git master and snapshot builds in
https://repository.apache.org/content/repositories/snapshots/commons-io/commons-io/2.23.0-SNAPSHOT/
Please verify your use case and close this ticket if appropriate.
was (Author: garydgregory):
[~nielsm5]
A fix is now is git master and snapshot builds in
https://repository.apache.org/content/repositories/snapshots/commons-io/commons-io/2.23.0-SNAPSHOT/
Please verify your use case and close this ticket if appropriate.
> Fix ThresholdingOutputStream#isThresholdExceeded
> ------------------------------------------------
>
> Key: IO-867
> URL: https://issues.apache.org/jira/browse/IO-867
> Project: Commons IO
> Issue Type: Bug
> Components: Streams/Writers
> Affects Versions: 2.18.0
> Environment: Java
> Reporter: Niels
> Priority: Major
> Fix For: 2.23.0
>
>
> The ThresholdingOutputStream has a beautiful boolean field called
> thresholdExceeded, yet the corresponding getter returns `written > threshold`.
> This means after `#thresholdReached()`, the next time `#getStream()` is
> called the 'threshold getter' returns false!
> This causes very inconsistent behavior...
--
This message was sent by Atlassian Jira
(v8.20.10#820010)