On Fri, 25 Jul 2025 05:33:31 GMT, Srinivas Mandalika <smandal...@openjdk.org> 
wrote:

> The java/awt/Frame/MiscUndecorated/ActiveAWTWindowTest.java test uses object 
> monitors and wait/notify to synchronise actions in the test.
> 
> Using CountDownLatch could make the test simpler, shorter, clearer.
> Tested the code on a windows-x64, macos-x64 and lnux-x64 machines and the 
> test is working as expected.

All Comments have been incorporated. 
1. Replaced ExtendedRobot by Robot
2. focusGainLatch usage fixed with an appropriate countDown
3. Replaced Delay*N with actual values.
4. Removed printStackTrace.
5. UI components access restricted to EDT fixed, both initiatiliseGUI, doTest 
are now static.
6. @Override added
7. Also the frame.toFront is now removed, as there is already a mouse click on 
the frame in the code, which is more reliable and has same effect - for the 
test scenario.

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

PR Comment: https://git.openjdk.org/jdk/pull/26471#issuecomment-3219993469

Reply via email to