RFR: JDK-8344058 : Remove doPrivileged calls from macos platform sources in the java.desktop module

Harshitha Onkar honkar at openjdk.org
Fri Nov 15 21:27:59 UTC 2024


On Fri, 15 Nov 2024 20:41:48 GMT, Phil Race <prr at openjdk.org> wrote:

>> src/java.desktop/macosx/classes/sun/lwawt/macosx/LWCToolkit.java line 173:
>> 
>>> 171:         System.loadLibrary("awt");
>>> 172:         System.loadLibrary("fontmanager");
>>> 173:     }
>> 
>> Refactored System.loadLibrary() calls to a separate static method since they require @SuppressWarnings("restricted") annotation.
>
> I see, because static { .. } doesn't accept an annotation.

Yes, That's right.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22159#discussion_r1844501786


More information about the client-libs-dev mailing list