RFR: 8365389: Remove static color fields from SwingUtilities3 and WindowsMenuItemUI [v2]
Phil Race
prr at openjdk.org
Wed Aug 20 20:25:37 UTC 2025
On Fri, 15 Aug 2025 22:09:15 GMT, Phil Race <prr at openjdk.org> wrote:
>>> > There are still static fields to store colors in `WindowsMenuItemUI`, do you want to get rid of those too? My bug report implied removing them, yet currently the static fields with colors remain intact in `WindowsMenuItemUI`.
>>>
>>> Yes I do. I overlooked them.
>>
>> If you do, this will resolve [JDK-8365625](https://bugs.openjdk.org/browse/JDK-8365625) that I submitted a few minutes ago.
>
>> > > There are still static fields to store colors in `WindowsMenuItemUI`, do you want to get rid of those too? My bug report implied removing them, yet currently the static fields with colors remain intact in `WindowsMenuItemUI`.
>> >
>> >
>> > Yes I do. I overlooked them.
>>
>> If you do, this will resolve [JDK-8365625](https://bugs.openjdk.org/browse/JDK-8365625) that I submitted a few minutes ago.
>
> oh. ok. I guess I will look at your test case and confirm that .. and looks like it is a fully done regression test.
> Maybe you want to push that yourself ?
> @prrace Your latest commit [1b67651](https://github.com/openjdk/jdk/commit/1b676514010e55d0903ba445e5dd806e9f1b862d) doesn't address the problem fully, you should also remove `WindowsMenuItemUI.installDefaults`.
You are right. What's there just duplicates the super-class. Although I don't know what "problem" it causes.
>
> I posted a comment where I said that I went ahead and submitted my own PR #26826 to resolve [JDK-8365625](https://bugs.openjdk.org/browse/JDK-8365625). My PR removes the static fields from `WindowsMenuItemUI` and adds the regression test attached to the JBS issue.
I thought that was supposed to be a follow-on ONCE this was done and I indicated last week I'd be removing these.
>
> I propose you revert commit [1b67651](https://github.com/openjdk/jdk/commit/1b676514010e55d0903ba445e5dd806e9f1b862d) and integrate this PR in the state it was last week with the updated subject that doesn't mention `WindowsMenuItemUI`.
I think this should go as it is, and that follow-on can be updated.
You can address the duplicate installDefaults()
Also I just noticed this comment
"I edited the subject of the JBS issue that this PR resolves, now it doesn't reference WindowsMenuItemUI"
I'd prefer you not have done that. In fact I was puzzled at the PR/JBS mismatch and restored the subject.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26783#issuecomment-3207981209
More information about the client-libs-dev
mailing list