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

Avoids a ConcurrentModificationException in Java9+. #831

Merged
merged 2 commits into from
Apr 16, 2021

Conversation

andyHa
Copy link
Member

@andyHa andyHa commented Apr 16, 2021

The code itself was and if safe in the way we call it. However, Java9+
throws an exception for concurrent modifications within computeIfAbsent
as it fears infinite recursions for the same key (which isn't the case
in our scenario).

The code itself was and if safe in the way we call it. However, Java9+
throws an exception for concurrent modifications within computeIfAbsent
as it fears infinite recursions for the same key (which isn't the case
in our scenario).
@andyHa andyHa added 🐛 Bugfix Contains only a small fix for an existing bug 👶🏻 Trivial Easy to review labels Apr 16, 2021
@sabieber sabieber merged commit 97c2a92 into develop Apr 16, 2021
@sabieber sabieber deleted the feature/aha/j16-fix branch April 16, 2021 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bugfix Contains only a small fix for an existing bug 👶🏻 Trivial Easy to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants