RFR: 8353950: Clipboard interaction on Windows is unstable [v2]
Sergey Bylokhov
serb at openjdk.org
Tue May 13 02:13:51 UTC 2025
On Mon, 14 Apr 2025 17:19:19 GMT, Matthias Bläsing <mblaesing at openjdk.org> wrote:
>> - Introduce a lock into WClipboard that protects the code between
>> openClipboard/closeClipboard invocations.
>> The native side does not allow to open the clipboard multiple
>> times or share the opened clipboard between multiple threads.
>>
>> - Remove of need to call openClipboard/closeClipboard from
>> getClipboardFormats by using the win32 call
>> GetUpdatedClipboardFormats
>>
>> - Prevent a race-condition by not registering the connection
>> between java and native side of clipboard multiple time, but
>> just at construction time.
>
> Matthias Bläsing has updated the pull request incrementally with one additional commit since the last revision:
>
> Adress review comments: Update copyright years and fix whitespace in if condition
is it possible to create a jtreg test for this issue?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24614#issuecomment-2874817388
More information about the client-libs-dev
mailing list