On Fri, 27 Oct 2023 11:01:55 GMT, Daniel Jeliński <djelin...@openjdk.org> wrote:

>> src/java.desktop/share/classes/java/awt/Button.java line 128:
>> 
>>> 126:     static {
>>> 127:         /* ensure that the necessary native libraries are loaded */
>>> 128:         Toolkit.loadLibraries();
>> 
>> I think it is safer to preserve loading the toolkit libraries: `Button` is a 
>> peered component and I can't see any of the peers loads the libraries.
>
> Button extends Component, which loads libraries

another thing to note is that the peers are created by the toolkit which init 
awt lib on startup.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16372#discussion_r1384295575

Reply via email to