On Wed, 16 Apr 2025 23:51:12 GMT, Harshitha Onkar <hon...@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