RFR: 8332947: [macos] java.awt.desktop.OpenURIHandler is not receiving events
Kevin Rushforth
kcr at openjdk.org
Mon Apr 14 22:13:47 UTC 2025
On Wed, 2 Apr 2025 14:15:28 GMT, Pabulaner IV <duke at openjdk.org> wrote:
> When trying to register an open URI handler when using JavaFX with a native menu, this task fails on Mac.
> Either the native menu is not shown or the URIs are not received.
>
> This pull request fixes this issue if AWT is registered after JavaFX, so that AWT runs embedded inside JavaFX.
> It fixes this by introducing a native event to AWT, which can be used by JavaFX to forward events such as an openURL event.
>
> JavaFX Pull Request: https://github.com/openjdk/jfx/pull/1755
> Co-Author: @FlorianKirmaier
As mentioned in [this comment of PR openjfx#1755](https://github.com/openjdk/jfx/pull/1755#issuecomment-2803089437), this fix will need to be tested both with and without the fix for the JavaFX half of the bug to ensure that there are no regressions (and no surprises) when running an unfixed JavaFX with a fixed JDK or vice versa,
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24379#issuecomment-2803161128
More information about the client-libs-dev
mailing list