RFR: 8315986: javax/swing/JMenuItem/4654927/bug4654927.java: component must be showing on the screen to determine its location [v2]

Prasanta Sadhukhan psadhukhan at openjdk.org
Fri Oct 6 05:03:07 UTC 2023


On Fri, 6 Oct 2023 04:52:54 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:

>> Add a delay to make it work on mach5 mac14 system. Tested for 50 iterations, link in JBS
>
> @prsadhuk 
> 
>> These don't help on the system I have tested on. There's something else going on. The test is basically about verifying that clicking on a disabled menu item doesn't dismiss the menu. I don't think it does. If I comment out the press/release the same exception occurs. And visually you can see the menu disappear and then reappear. What it looks like is that the call at line 86/91 to mouseMove which returns the pointer to the "menu" location causes the list of menu items to disappear and then quickly reappear. Sampling if the menu is on screen at that time will cause the error. It only happens once .. very odd ..
> 
> Ran the updated test MacOS 14 ARM, thought the test passes there seems to be an issue similar to what Phil described earlier - the menu appears then disappears and appears again quickly for the second scenario - when the menu is clicked and glided through the dropdown. I have attached the screen recording to the JBS.

OK..But why the frame is at the right hand edge of the screen when we specify setLocationRelativeTo to center it?
Probably there is something wrong with setting location too in mac14 arm?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/15677#discussion_r1348244798


More information about the client-libs-dev mailing list