Skip to content

[GR-74511] Fix Darwin headless AWT/ImageIO native-image support#13282

Open
graalvmbot wants to merge 13 commits intomasterfrom
GR-74511
Open

[GR-74511] Fix Darwin headless AWT/ImageIO native-image support#13282
graalvmbot wants to merge 13 commits intomasterfrom
GR-74511

Conversation

@graalvmbot
Copy link
Copy Markdown
Collaborator

This change improves Native Image support for headless java.desktop usage, in particular for AWT/ImageIO code paths on Linux
and Darwin.

It adds a small headless java.desktop integration test, broadens the relevant JNI and native-library registration, and
teaches Darwin built-in JNI handling to fall back to runtime lookup when a preserved java.desktop code path reaches JNI
symbols that are not exported by the Darwin static JDK archives.

To avoid slowing down the normal native unit test suite, the new coverage runs as a dedicated integration-style gate task with
-H:Preserve=module=java.desktop.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 4, 2026
@thomaswue thomaswue changed the title [WIP][GR-74511] Fix Linux headless AWT/ImageIO native-image support [WIP][GR-74511] Fix Darwin headless AWT/ImageIO native-image support Apr 4, 2026
@graalvmbot graalvmbot changed the title [WIP][GR-74511] Fix Darwin headless AWT/ImageIO native-image support [GR-74511] Fix Darwin headless AWT/ImageIO native-image support Apr 12, 2026
Reapply the AWT setup when awt is inherited from a previous layer, tighten the desktop integration tests once environment checks pass, and keep Darwin absolute built-in AWT loads restricted to trusted image and JDK library locations.
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