Skip to content

COLLECTIONS-900: IteratorChain#addIterator() does not work properly with IteratorChain parameters - #730

Open
mbaedke wants to merge 4 commits into
apache:masterfrom
mbaedke:master
Open

mbaedke wants to merge 4 commits into
apache:masterfrom
mbaedke:master

Conversation

@mbaedke

@mbaedke mbaedke commented Aug 31, 2026

Copy link
Copy Markdown

Added failing test case.

…ith IteratorChain parameters

Added failing test case.
…ith IteratorChain parameters

Extended test, suggested fix.
@garydgregory

Copy link
Copy Markdown
Member

main and test changes don't match as the build fails in tests.

@garydgregory

Copy link
Copy Markdown
Member

@mbaedke
The build fails.

…ith IteratorChain parameters

Fixed codestyle.
@garydgregory

Copy link
Copy Markdown
Member

Jira ticket is COLLECTIONS-900.

@mbaedke

mbaedke commented Sep 2, 2026

Copy link
Copy Markdown
Author

Thx @garydgregory , fixed it.

@garydgregory

Copy link
Copy Markdown
Member

@mbaedke
Thank you for the update.
I think we need more tests to verify nothing breaks for the full sequence, exhaustion, remove(), empty leading iterators, and rechaining after at least one successful next() call.

@mbaedke

mbaedke commented Sep 3, 2026

Copy link
Copy Markdown
Author

@mbaedke Thank you for the update. I think we need more tests to verify nothing breaks for the full sequence, exhaustion, remove(), empty leading iterators, and rechaining after at least one successful next() call.

Yes, I'll get that done by EOW

@mbaedke

mbaedke commented Sep 11, 2026

Copy link
Copy Markdown
Author

I think we need more tests to verify nothing breaks for the full sequence, exhaustion, remove(), empty leading iterators, and rechaining after at least one successful next() call.

@garydgregory : Sorry for the late response. After thinking about it: this PR together with #628 fundamentally change the way addIterator() treats ChainedIterators. Wouldn't it be very reasonable to parameterize the test so that it runs a second time with makeObject() creating a chain of ChainedIteraors instead of ListIterators?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants