Replace OSXAdapter with java.awt.Desktop handlers #557
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 284 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.338
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #557"
general
weight: 0.35
pacmano1
Summary
OSXAdapteris Apple's sample adapter, under Apple's own license header (relates to https://github.com/OpenIntegrationEngine/engine/issues/472), that installs the macOS About and Quit handlers by reflection againstcom.apple.eawt.Application. Its pre-Java-9 path implementscom.apple.eawt.ApplicationListener, which JEP 272 removed; its Java 9+ path only works because the launcher passes--add-opens java.desktop/com.apple.eawt. Both end up at the samejava.awt.desktophandlers thatjava.awt.Desktophas exposed publicly since Java 9, so the reflection, the add-opens, and the Apple-licensed file can all go. #544 drew attention to the class while converting its stderr prints.OSXAdapter.javaand registers the two handlers withjava.awt.Desktop.setAboutHandler/setQuitHandler, guarded byisSupportedinstead ofIS_OS_MAC. Linux and Windows report both actions unsupported, so nothing changes there. The quit handler keeps the old contract:Frame.logout(true)doesn't callSystem.exit, so it callsperformQuit()whenquitMac()returns true andcancelQuit()otherwise.BareBonesBrowserLaunch.openURLto callDesktop.browsedirectly and drops itscom.apple.eio.FileManagerandrundll32fallbacks, which can't be reached on Java 17 sinceDesktopis always supported on macOS and Windows. The Unix browser search stays for Linux desktops without the GNOME librariesDesktopneeds.--add-opensforcom.apple.eawtandcom.apple.eiofromserver/mirth-client.jnlp,WebStartServletTest, and thedevClientGradle task. Nothing else referenced those packages.Testing
I verified that the browser launching still works from non-GNOME linux.
This needs a manual check on macOS, which I can't do
That is the behavior the old Java 9+ path provided, so no change is expected.
Claude checked:
./gradlew clean build: all 797 tests pass.com.appleanywhere in the repository.---
🤖 Drafted with Claude Code