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

Throw early when EventLoop is modified while running #6115

Merged
merged 4 commits into from
Jan 1, 2024

Conversation

ThadHouse
Copy link
Member

Had a report on discord that a team was seeing ConcurrentModificationExceptions in EventLoop, but they didn't know where. The exception is thrown late by Java, so if you get it, debugging the error is very difficult. Throw the error early if we know a crash is going to occur, to make debugging easier.

@ThadHouse ThadHouse requested a review from a team as a code owner December 30, 2023 17:04
@ThadHouse
Copy link
Member Author

/format

@Starlight220
Copy link
Member

Can you add tests for this?

@ThadHouse
Copy link
Member Author

Added

@PeterJohnson PeterJohnson merged commit f9aabc5 into wpilibsuite:main Jan 1, 2024
27 checks passed
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