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

Deprecate the constructors of our ExecutionException-like classes that don't accept a cause. #7085

Merged
1 commit merged into from
Mar 7, 2024

Conversation

copybara-service[bot]
Copy link
Contributor

Deprecate the constructors of our ExecutionException-like classes that don't accept a cause.

Callers commonly assume that instances of these types have a cause, and in practice, they nearly always do. See jspecify/jspecify#490.

RELNOTES=util.concurrent: Deprecated the constructors of UncheckedExecutionException and ExecutionError that don't accept a cause. We won't remove these constructors, but we recommend migrating off them, as users of those classes often assume that instances will contain a cause.

…hat don't accept a cause.

Callers commonly assume that instances of these types have a cause, and in practice, they nearly always do. See jspecify/jspecify#490.

RELNOTES=`util.concurrent`: Deprecated the constructors of `UncheckedExecutionException` and `ExecutionError` that don't accept a cause. We won't remove these constructors, but we recommend migrating off them, as users of those classes often assume that instances will contain a cause.
PiperOrigin-RevId: 613614892
@copybara-service copybara-service bot closed this Mar 7, 2024
@copybara-service copybara-service bot closed this pull request by merging all changes into master in 1bb3c43 Mar 7, 2024
@copybara-service copybara-service bot deleted the test_613601480 branch March 7, 2024 17:52
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.

1 participant