Integrated: 8344896: Remove obsolete checks for AWTPermission accessClipboard

Phil Race prr at openjdk.org
Mon Nov 25 19:34:29 UTC 2024


On Mon, 25 Nov 2024 06:53:43 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.

This pull request has now been integrated.

Changeset: 4d898aa4
Author:    Phil Race <prr at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/4d898aa451db5b57601c088cdc3c947827f0bc08
Stats:     281 lines in 11 files changed: 1 ins; 271 del; 9 mod

8344896: Remove obsolete checks for AWTPermission accessClipboard

Reviewed-by: azvegint

-------------

PR: https://git.openjdk.org/jdk/pull/22356


More information about the client-libs-dev mailing list