Skip to content

Refactor: Take the Java toolkit off the macOS renderer path (NFR-14) - #173

Merged
b-re-w merged 3 commits into
developfrom
feat/awt-off-unix
Oct 4, 2026
Merged

b-re-w merged 3 commits into
developfrom
feat/awt-off-unix

Conversation

@b-re-w

@b-re-w b-re-w commented Oct 4, 2026

Copy link
Copy Markdown
Member

Part of #133, split out of #135 so macOS lands without waiting for #134 (Windows).

  • The macOS build no longer force-loads libawt_lwawt.a, roots its accessibility classes or registers ImeReachabilityFeature and AccessibilityReachabilityFeature. The AppKit window does text input and accessibility itself.
  • The divider's resize pointer is an icon of our own on macOS; the toolkit cursor lives in ToolkitResizeCursor.kt for the windows that are still the toolkit's.
  • The accessibility-link check and its CI step go, since the classes it checked are no longer linked.
  • scripts/tests/no-awt-on-macos-path.test.sh checks the macOS build script and every source outside an explicit toolkit-window list.

Not in this PR: Linux is on the toolkit window until #160 (X11 default) merges, so the Linux part waits for it. Windows waits for #134. The shared reachability metadata, awt-forced.txt, the move of toolkit window sources to devshell/ and the Linux/Windows build script changes stay in #135, because Linux and Windows still need them.

Needs CI proof: a macOS native image without the force-loaded toolkit archive has not been built before.

b-re-w added 3 commits October 5, 2026 03:30
The macOS native image stops force-loading libawt_lwawt.a, rooting its accessibility
classes and registering the toolkit's input method and accessibility features: the AppKit
window does both itself. The divider's resize pointer is an icon of our own on macOS.
Windows and Linux keep the toolkit window and its sources until their own windows are the
default (#134, #160).

scripts/tests/no-awt-on-macos-path.test.sh covers the macOS build script and the sources
outside the toolkit-window list. Part of NFR-14, split from #135.
@b-re-w
b-re-w merged commit 75b652e into develop Oct 4, 2026
28 checks passed
@b-re-w
b-re-w deleted the feat/awt-off-unix branch October 4, 2026 22:04
b-re-w added a commit that referenced this pull request Oct 5, 2026
Feat: Take the Java toolkit off the Linux GraalVM image, and give macOS the same main dispatcher (follows #173, #184)
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