Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArrayList iterator back() bug fix, compute remaining correctly #314

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

barakugav
Copy link
Contributor

@barakugav barakugav commented Feb 6, 2024

The current implementation of ArrayList.iterator().back(int n) compute the number of remaining elements wrongly.
It compute size-pos, which is correct for the skip(int n) method, but wrong for the back(int n) method.

@barakugav
Copy link
Contributor Author

barakugav commented Feb 6, 2024

Together with #291, these bugs are kind of limiting the use of the lists. Is there a plan for a new release soon? @vigna

@vigna vigna merged commit 8b5ccdf into vigna:master Feb 6, 2024
@vigna
Copy link
Owner

vigna commented Feb 6, 2024

Good catch!

@vigna
Copy link
Owner

vigna commented Feb 6, 2024

Just done 8.5.13! Should be on sonatype soon.

@barakugav
Copy link
Contributor Author

Thanks!

@barakugav barakugav deleted the arraylist-iterator-back branch February 7, 2024 07:18
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.

2 participants