Skip to content

Issue 1528: enable native access to silence JNA warning on Java 25+ - #194

Merged
labkey-willm merged 1 commit into
developfrom
fb_jna_native_access_1528
Aug 26, 2026
Merged

Issue 1528: enable native access to silence JNA warning on Java 25+#194
labkey-willm merged 1 commit into
developfrom
fb_jna_native_access_1528

Conversation

@labkey-willm

@labkey-willm labkey-willm commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Rationale

JNA, pulled in transitively by docker-java for the docker module, calls System.load, which JEP 472 flags as a restricted method starting around Java 24 and warns about under Java 25 unless native access is explicitly enabled. Adds --enable-native-access=ALL-UNNAMED to entrypoint.sh's JAVA_ADD_OPENS so the warning no longer appears in container logs.

Related to https://github.com/LabKey/kanban/issues/1528

Related Pull Requests

Changes

  • entrypoint.sh - append --enable-native-access=ALL-UNNAMED to JAVA_ADD_OPENS

Appends --enable-native-access=ALL-UNNAMED to JAVA_ADD_OPENS in entrypoint.sh, same fix as install-script's JAVA_REFLECTION_JAR_OPS for the containerized launch path.
@labkey-willm
labkey-willm merged commit 6a2c083 into develop Aug 26, 2026
8 checks passed
@labkey-willm
labkey-willm deleted the fb_jna_native_access_1528 branch August 26, 2026 21:20
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.

2 participants