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

Jeremy Wood jwood at openjdk.org
Mon Sep 22 17:05:06 UTC 2025


On Thu, 18 Sep 2025 06:51:26 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> Jeremy Wood has updated the pull request incrementally with three additional commits since the last revision:
>> 
>>  - 8367376: rename test file
>>    
>>    This is in response to:
>>    https://github.com/openjdk/jdk/pull/27205#discussion_r2356674752
>>  - 8367376: add new line to end of file
>>    
>>    This is in response to:
>>    https://github.com/openjdk/jdk/pull/27205#discussion_r2356666306
>>  - 8367376: changing field names
>>    
>>    This is in response to:
>>    https://github.com/openjdk/jdk/pull/27205#discussion_r2356664929
>
> 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.

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

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


More information about the client-libs-dev mailing list