RFR: 8318091: Remove empty initIDs functions
Sergey Bylokhov
serb at openjdk.org
Tue Nov 7 03:05:40 UTC 2023
On Fri, 27 Oct 2023 11:01:55 GMT, Daniel Jeliński <djelinski at 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
More information about the client-libs-dev
mailing list