RFR: 8344896: Remove obsolete checks for AWTPermission accessClipboard [v2]
Alexander Zvegintsev
azvegint at openjdk.org
Mon Nov 25 18:54:16 UTC 2024
On Mon, 25 Nov 2024 18:35:53 GMT, Phil Race <prr at openjdk.org> wrote:
>> This removes the SecurityManager related checks for clipboard access and methods which exist solely to support that.
>>
>> One interesting thing is that there are two places where a method "canAccessSystemClipboard()" was not only about the SM.
>> In SwingUtilities and InputEvent it would return false in headless mode, regardless of whether there is an SM.
>> This means I have left the methods in place, behaving the same as before in headless mode.
>> We may be able to further simplify this later but it will be clearer with the SM-only logic removed and out of scope for this fix.
>
> Phil Race has updated the pull request incrementally with one additional commit since the last revision:
>
> 8344896
> I had listed these bugs in https://bugs.openjdk.org/browse/JDK-8344654 for @honkar-jdk to update.
I will check with her if she will get to these soon, otherwise I can address them here.
Good to know, I guess we can leave them for the JDK-8344654 then.
-------------
Marked as reviewed by azvegint (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/22356#pullrequestreview-2459382722
More information about the client-libs-dev
mailing list