RFR: 8367376: Bad ButtonUI prevents other components from updating when system changes desktop properties [v4]

Prasanta Sadhukhan psadhukhan at openjdk.org
Fri Sep 26 07:54:31 UTC 2025


On Mon, 22 Sep 2025 17:02:26 GMT, Jeremy Wood <jwood at openjdk.org> wrote:

>> test/jdk/com/sun/java/swing/plaf/DesktopPropertyResetPendingFlagTest.java line 71:
>> 
>>> 69:         try {
>>> 70:             String lf = UIManager.getSystemLookAndFeelClassName();
>>> 71:             UIManager.setLookAndFeel(lf);
>> 
>> Guess we should iterate for all L&F s, not just test the default..
>
> I went the opposite direction for now: I removed any reference to the L&F. This test is structured so it emulates what the Windows L&F was doing, but it's platform/L&F-independent (for the sake of full automation).
> 
> I tested on Mac and Windows and confirmed the test still fails against master, and it passes in this PR.

If you do not want to tinker with the current test, maybe you can have another test testing the L&F s,  handling exception gracefully in updateUI

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27205#discussion_r2381235377


More information about the client-libs-dev mailing list