RFR: 8367376: Bad ButtonUI prevents other components from updating when system changes desktop properties [v4]
Alexey Ivanov
aivanov at openjdk.org
Fri Sep 26 14:20:41 UTC 2025
On Fri, 26 Sep 2025 07:51:20 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> 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
Since the changes are in look-and-feels, you should iterate over installed look-and-feels. Otherwise you test Aqua L&F on macOS and Metal on Windows only, which means an exception may still cause problems in other L&Fs.
Creating several tests if needed is fine, yet I don't think it's needed.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27205#discussion_r2382574446
More information about the client-libs-dev
mailing list