RFR: 8346753: Test javax/swing/JMenuItem/RightLeftOrientation/RightLeftOrientation.java fails on Windows Server 2025 x64 because the icons of RBMenuItem and CBMenuItem are not visible in Nimbus LookAndFeel

Prasanta Sadhukhan psadhukhan at openjdk.org
Wed Jun 25 03:17:27 UTC 2025


On Tue, 24 Jun 2025 17:23:47 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> If there were another L&F to test, or if Windows L&F weren't the last in the list, the test will continue to fail because the current L&F will again be different from Windows L&F.

But there isn't..The L&F the test wanted to test and had tested since closed days are now working with the fix and this allows the test to run ok...I dont think its a product bug since the L&F was not propagated to all nodes of the Swing components after L&F change so it should be a test issue which was solved. 
Rewriting the test, if needed, could be done as part of new issue but this one fixes the issue and let manual testing team run the test in all L&F

>  I commented out the line UIManager.setLookAndFeel(save), the Windows menu looks good but clicking the Metal menu now throws NPE:

I couldn't reproduce this problem with the current PR..What L&F you started the test with? I tested the test with Metal/Windows/Nimbus from the commandline and couldn't find any issue.

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

PR Comment: https://git.openjdk.org/jdk/pull/25907#issuecomment-3002735947


More information about the client-libs-dev mailing list