Skip to content

Fix build on JDK 20+ by targeting Java 8 - #208

Merged
pietrygamat merged 1 commit into
java-native:masterfrom
pietrygamat:fix-jdk20-build
Oct 17, 2026
Merged

pietrygamat merged 1 commit into
java-native:masterfrom
pietrygamat:fix-jdk20-build

Conversation

@pietrygamat

Copy link
Copy Markdown
Collaborator

JDK 20 removed support for --release 7, so the jdk12+ profile no longer works there. Add a jdk20+ profile that targets 8, mirroring how jdk12+ targets 7. Verified on JDK 8, 11, 17, 21 and 25.

JDK 20 removed support for --release 7, so the jdk12+ profile no longer
works there. Add a jdk20+ profile that targets 8, mirroring how jdk12+
targets 7. Verified on JDK 8, 11, 17, 21 and 25.

@hiddenalpha hiddenalpha left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good to me :)

@pietrygamat
pietrygamat merged commit aaa18fb into java-native:master Oct 17, 2026
13 checks passed
@pietrygamat
pietrygamat deleted the fix-jdk20-build branch October 17, 2026 20:46
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