RFR: JDK-8354340 : Open source Swing Tests - Set 6 [v2]
Sergey Bylokhov
serb at openjdk.org
Fri Apr 18 23:09:48 UTC 2025
On Wed, 16 Apr 2025 23:51:12 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:
>> test/jdk/javax/swing/JViewport/ScrollRectToVisibleTest3.java line 67:
>>
>>> 65: Rectangle frameBounds = Util.invokeOnEDT(() -> getComponentBounds(frame));
>>> 66: robot.delay(100);
>>> 67: Point scrollBtnLoc = Util.getCenterPoint(scrollButton);
>>
>> scrollButton initialized on EDT
>
> [Util.getCenterPoint()](https://github.com/openjdk/jdk/blob/db2dffb6e5fed3773080581350f7f5c0bcff8f35/test/jdk/javax/swing/regtesthelpers/Util.java#L197) is already being invoked on EDT.
However, scrollButton is a parameter of getCenterPoint() and is passed to the method on the main thread.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24697#discussion_r2051232482
More information about the client-libs-dev
mailing list