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 ConcurrentModificationException from CallLog #546

Merged

Conversation

hughsimpson
Copy link
Contributor

@hughsimpson hughsimpson commented Nov 29, 2024

Pull Request Checklist

  • I agree to licence my contributions under the MIT licence
  • I have added copyright headers to new files
  • I have added tests for any changed functionality

Fixes

Fixes ConcurrentModificationException (c.f. comment on #527)
The actual fix is the same as the one proposed in #462, but this also adds a test that fails on scala 2.13 & 3 without the fix.
The test is a little weird, but I couldn't write one that replicated the bug that wasn't a bit kooky....

@hughsimpson hughsimpson changed the title add failing test fix ConcurrentModificationException from CallLog Nov 29, 2024
@hughsimpson
Copy link
Contributor Author

On reflection it would be better to test both test frameworks concurrently, but right now I'm not intending to do that. I found it very difficult to get this error at all consistently but I recognised it from some seemingly-one-off flaky tests... Anyway, I'm happy with it as it stands.

@goshacodes
Copy link
Collaborator

@barkhorn let's merge this

@goshacodes goshacodes merged commit f7e940b into paulbutcher:master Dec 5, 2024
3 checks passed
@goshacodes
Copy link
Collaborator

goshacodes commented Dec 5, 2024

Not sure when I publish this (need some time to understand how it works), probably on the weekend

@goshacodes
Copy link
Collaborator

@barkhorn If you get to this before me, publish it as 6.1, please

@hughsimpson hughsimpson deleted the fix_ConcurrentModificationException branch December 5, 2024 23:55
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