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

Remove ThreadGroup#allowThreadSuspension from forbidden APIs #101651

Merged

Conversation

williamrandolph
Copy link
Contributor

java.lang.ThreadGroup#allowThreadSuspension(boolean) was removed in JDK 21. See https://www.oracle.com/java/technologies/javase/21all-relnotes.html#JDK-8297295

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@mark-vieira
Copy link
Contributor

I assume we don't have any usages of this then otherwise we'd see runtime errors when running on a Java 21 JRE?

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@williamrandolph
Copy link
Contributor Author

@elasticsearchmachine please run elasticsearch-ci/part-1

@williamrandolph
Copy link
Contributor Author

@mark-vieira Right. If there were usages, we'd have hit runtime or compilation failures when we moved to JDK 21. And a git grep search for the method turned up nothing.

@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.11
8.10

williamrandolph added a commit to williamrandolph/elasticsearch that referenced this pull request Nov 1, 2023
williamrandolph added a commit to williamrandolph/elasticsearch that referenced this pull request Nov 1, 2023
elasticsearchmachine pushed a commit that referenced this pull request Nov 1, 2023
elasticsearchmachine pushed a commit that referenced this pull request Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Core Core issues without another label >non-issue Team:Core/Infra Meta label for core/infra team v8.10.5 v8.11.1 v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants