RFR: 8334580: Deprecate no-arg constructor BasicSliderUI() for removal [v2]

Alexey Ivanov aivanov at openjdk.org
Fri Jun 21 18:23:13 UTC 2024


On Fri, 21 Jun 2024 18:08:45 GMT, Phil Race <prr at openjdk.org> wrote:

> But it means that if we deprecated the consructor with args we'd probably want to look at those too. It seems like the ripple effect isn't worth it.

It would clean up the code… Yes, we would need to modify all the subclasses too.

> And what if there is later a need for the JSlider ? Unlikely I know ..

The `JSlider` object is set in `installUI` method where a UI object gets associated with a particular component.

Before `installUI` is called, the `slider` field is `null`.

> but I'd prefer to correct the short-term mistake and leave everything else alone.

So, considering the ripple effect is not worth it, I guess.

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

PR Comment: https://git.openjdk.org/jdk/pull/19819#issuecomment-2183230243


More information about the client-libs-dev mailing list