RFR: 8332947: [macos] OpenURIHandler events not received when AWT is embedded in another toolkit [v5]
Pabulaner IV
duke at openjdk.org
Wed May 7 16:48:01 UTC 2025
On Tue, 6 May 2025 20:20:04 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:
>> Pabulaner IV has updated the pull request incrementally with three additional commits since the last revision:
>>
>> - 8332947: [macos] java.awt.desktop.OpenURIHandler is not receiving events
>> - 8332947: [macos] java.awt.desktop.OpenURIHandler is not receiving events
>> - 8332947: [macos] java.awt.desktop.OpenURIHandler is not receiving events
>
> src/java.desktop/macosx/native/libawt_lwawt/awt/ApplicationDelegate.m line 302:
>
>> 300:
>> 301: NSString *url = [[openURLEvent paramDescriptorForKeyword:keyDirectObject] stringValue];
>> 302: [self _openURL:url];
>
> `_openURL` is a class method. Using `self` is incorrect and causes a failure in the normal (non-embedded) case.
>
> Suggestion:
>
> [ApplicationDelegate _openURL:url];
Thanks for the feedback, I am new to Objective C, so it the feedback is much appreciated!
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24379#discussion_r2078057470
More information about the client-libs-dev
mailing list