Skip to content

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

Open
labkey-willm wants to merge 1 commit into
developfrom
fb_jna_native_access_1528
Open

Issue 1528: enable native access to silence JNA warning on Java 25+#194
labkey-willm wants to merge 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.
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