Skip to content

Work around bugs in java.util.Spliterator#estimateSize #141

Closed

Description

@seanf

Some Spliterators have bugs in their estimateSize methods, and introducing ProgressBar can trigger these bugs when it tries to determine the initialMax value. It would be good to have ProgressBar.wrap catch any exceptions and do its best to continue. This of courses raises the question of exception logging.

Would you be open to a PR which makes this change?

Activity

  1. ctongfei commented on Sep 10, 2022

    @ctongfei
    Owner

    It sounds interesting -- how should we handle the exception? Just ignore it and continue as if it is indefinite?
    This is already the behavior for InputStreams. I'll do the same for Spliterators. Thanks!

  2. seanf commented on Sep 12, 2022

    @seanf
    ContributorAuthor

    Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions