<i18n dev> RFR: 8344667: Remove most uses of AWT Permissions from the desktop module

Phil Race prr at openjdk.org
Mon Nov 25 19:44:21 UTC 2024


On Mon, 25 Nov 2024 15:34:15 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:

>> This removes most uses of AWTPermission in the desktop module.
>> clipboard will be handled separately because it is less straightforward.
>
> src/java.desktop/share/classes/javax/swing/SwingUtilities.java line 1973:
> 
>> 1971:             // This frame can never be shown
>> 1972:         }
>> 1973:         public void dispose() {
> 
> Not directly related, but there are two unused declarations that haven't been used in ages:
> 
> 
>     // These states are system-wide, rather than AppContext wide.
>     private static boolean canAccessEventQueue = false;
>     private static boolean eventQueueTested = false;
> 
> `canAccessEventQueue` looks like it was somehow related to `CHECK_AWT_EVENTQUEUE_PERMISSION`

Yes I noticed these too, and yesterday I filed a bug to track that https://bugs.openjdk.org/browse/JDK-8344918

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22350#discussion_r1857250139


More information about the i18n-dev mailing list