RFR: 8190329: [macos] Swing InterOp Platform.exit() crash [v2]
Sergey Bylokhov
serb at openjdk.org
Thu Aug 29 21:37:19 UTC 2024
On Wed, 28 Aug 2024 16:43:49 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:
>> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Reattach thread if AWT is the owner of NSApplication
>
> src/java.desktop/macosx/native/libawt_lwawt/awt/ApplicationDelegate.m line 128:
>
>> 126: [ThreadUtilities setApplicationOwner:NO];
>> 127: return nil;
>> 128: }
>
> If you flip the default, then you need to set it to YES here:
>
>
> [ThreadUtilities setApplicationOwner:YES];
>
>
> (this might be best anyway, since then you will always set the flag)
Do we want to use cached version for this case?
`[NSApp isMemberOfClass:[NSApplication class]] && overrideDelegate`
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20688#discussion_r1737232505
More information about the client-libs-dev
mailing list