Skip to content

Conversation

graalvmbot
Copy link
Collaborator

JDK 21 support was dropped in #11141, so we can cleanup the native image code base.

This PR removes JDK 21 code guarded by JavaVersionUtil.JAVA_SPEC <= 21 or similar checks. In addition, some simple refactorings were done like replacing reflection with direct calls whenever possible.

Reviewers: Please have a close look at the removed branches. We have many different conditions variants and it is just too easy to delete the wrong branch. I did many of the changes with the help of the IDE refactoring tools. Never the less, please pay attention.

See also:

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 12, 2025
@zapster zapster self-assigned this May 12, 2025
@graalvmbot graalvmbot force-pushed the je/svm-jdk21-cleanup-GR-64855_javaversionutil branch from 9b3238f to 233930a Compare May 12, 2025 08:34
@graalvmbot graalvmbot closed this May 12, 2025
@graalvmbot graalvmbot deleted the je/svm-jdk21-cleanup-GR-64855_javaversionutil branch May 12, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants