Skip to content

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

Open
graalvmbot wants to merge 16 commits into
masterfrom
GR-74511
Open

[GR-74511] Fix Darwin headless AWT/ImageIO native-image support#13282
graalvmbot wants to merge 16 commits into
masterfrom
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
thomaswue added 2 commits May 23, 2026 18:24
Inspect copied Darwin JDK dylibs with otool and enqueue JDK-local dependencies for copying. This keeps indirect @rpath dependencies available without relying on AWT-specific registration.
Look up otool via xcrun before falling back to PATH and report a clear native toolchain error if Darwin JDK library dependencies cannot be inspected.
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