Integrated: 8344063: Remove doPrivileged calls from swing classes in the java.desktop module
Phil Race
prr at openjdk.org
Thu Nov 14 18:44:48 UTC 2024
On Wed, 13 Nov 2024 23:19:32 GMT, Phil Race <prr at openjdk.org> wrote:
> This is the first of a number of PRs to remove doPrivileged uses in client libraries.
> These calls are obsolete dead code after JEP 486.
>
> I have run all our automated tests, including JCK tests, and manually tested SwingSet.
>
> One thing I might have missed in a couple of cases is that it seems that javac doesn't seem to notice if you leave an un-needed SuppressWarnings("removal") annotation.
>
> As per the bug report I am limiting (as much as I can) what I touch here to be just the immediate consequences of removing doPrivileged calls. These changes are plenty enough as it is.
This pull request has now been integrated.
Changeset: ec148c13
Author: Phil Race <prr at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/ec148c136555899c90f773b2904baf459efac3af
Stats: 573 lines in 28 files changed: 55 ins; 366 del; 152 mod
8344063: Remove doPrivileged calls from swing classes in the java.desktop module
Reviewed-by: honkar, kcr
-------------
PR: https://git.openjdk.org/jdk/pull/22090
More information about the client-libs-dev
mailing list