RFR: 8348865: JButton/bug4796987.java never runs because Windows XP is unavailable [v2]

Abhishek Kumar abhiscxk at openjdk.org
Mon Feb 3 18:09:46 UTC 2025


On Mon, 3 Feb 2025 17:45:02 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> test/jdk/javax/swing/JButton/4796987/bug4796987.java line 30:
>> 
>>> 28:  * @requires (os.family == "windows")
>>> 29:  * @summary Verify JButton.setBorderPainted(false) removes border
>>> 30:  *      for Windows visual styles (Windows XP and later)
>> 
>> Is it necessary to mention about Windows XP ?
>
> Why not? Visual styles were introduced in Windows XP.
> 
> Even though the test was written when both Windows Vista and Windows 7 had already been released, it was limited to Windows XP only for some reason.

Since it will never be tested on Windows XP machine, I thought it's not worth to mention.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23336#discussion_r1939816320


More information about the client-libs-dev mailing list