<AWT Dev> RFR: 8238436: java/awt/Frame/FrameLocationTest/FrameLocationTest.java fails

Pankaj Bansal pbansal at openjdk.java.net
Tue Oct 6 18:29:06 UTC 2020


On Tue, 6 Oct 2020 18:13:44 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> > The test is setting the frame location and then verifying the location in a loop, but there is no wait/delay added to
> > let the >frame.setLocation complete. It is intentionally was implemented that way, the setLocation sets the property
> > "location" for the frame, it is stored in the frame itself, the getLocation() method if called immediately after
> > setLocation() should return that property.

ok, so we should not add delay after setLocation. But then the frame is not repainted at new location at all. The test
will just set and get the location without actually moving the frame to the location. The test is unstable in this
scenario.

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

PR: https://git.openjdk.java.net/jdk/pull/527


More information about the awt-dev mailing list