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

Fix ArrayIndexOutOfBoundsException in mutable.BitSet.<<= #86

Merged

Conversation

linasm
Copy link
Contributor

@linasm linasm commented Mar 7, 2020

Fix ArrayIndexOutOfBoundsException that is thrown by <<= operation on mutable.BitSet consisting of more than one empty word.
Such BitSet is possible in practice, even though it seems to contradict the invariant prescribed in the documentation ("The memory footprint of a bitset is determined by the largest number stored in it."). See the added test case for an example.

@SethTisue
Copy link
Member

is there someone watching this repo who can review this?

@SethTisue
Copy link
Member

SethTisue commented Apr 22, 2020

I'll just go ahead and merge it, then :-)

thanks @linasm

@SethTisue SethTisue merged commit 640b712 into scala:master Apr 22, 2020
@SethTisue SethTisue mentioned this pull request Oct 27, 2020
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.

None yet

2 participants