RFR: 8334580: Deprecate no-arg constructor BasicSliderUI() for removal [v2]
Prasanta Sadhukhan
psadhukhan at openjdk.org
Mon Jun 24 05:53:11 UTC 2024
On Fri, 21 Jun 2024 18:49:08 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:
>> Or:
>>
>>
>> * @deprecated This constructor will be removed in a future release.
>> * Use {@link #BasicSliderUI(JSlider b)} instead.
>>
>> This is in the gist of the deprecation message for [`SecurityManager`](https://download.java.net/java/early_access/jdk24/docs/api/java.base/java/lang/SecurityManager.html).
>
> FWIW, we did something similar to this in JavaFX when we deprecated for removal an accidentally added constructor (an implicit no-arg constructor in our case).
>
> https://github.com/openjdk/jfx/commit/a5ecfb68
>
>
> * @deprecated This constructor was exposed erroneously and will be removed in the next version.
> * Use {@link #createSelector(String)} instead.
>
>
> If you decide it's worth doing, you might also include a pointer to the other constructor, although since there only is one more, it is pretty obvious for this class.
OK...Updated...
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19819#discussion_r1650381797
More information about the client-libs-dev
mailing list