On Fri, 4 Jun 2021 21:36:03 GMT, Sergey Bylokhov <[email protected]> wrote:
>> Maxim Kartashev has updated the pull request incrementally with one
>> additional commit since the last revision:
>>
>> Changed the check for the XFramePeer target being
>> javax.swing.RootPaneContainer in
>> order to avoid unnecessary class loading if it isn't.
>>
>> Also updated the test such that robot.createScreenCapture() is not
>> executed on EDT.
>
> src/java.desktop/unix/classes/sun/awt/X11/XDecoratedPeer.java line 1327:
>
>> 1325: Optional<Boolean> res = Optional.empty();
>> 1326:
>> 1327: if (target instanceof javax.swing.RootPaneContainer) {
>
> Looks like this instanceof will load the Swing as well.
Sorry, missed that one the first time. Corrected now.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4113