JDK-8334677 : Deprecate no-arg constructor BasicSliderUI() for removal
  • Type: CSR
  • Component: client-libs
  • Sub-Component: javax.swing
  • Priority: P2
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 23,24
  • Submitted: 2024-06-20
  • Updated: 2024-06-24
  • Resolved: 2024-06-24
Related Reports
CSR :  
Description
Summary
-------
Deprecate for removal the no-args public constructor of `javax.swing.plaf.basic.BasicSliderUI` 

Problem
-------

The no-arg constructor `BasicSliderUI()` was added by mistake under [JDK-8250852](https://bugs.openjdk.org/browse/JDK-8250852) and the new constructor appears in CSR [JDK-8251855](https://bugs.openjdk.org/browse/JDK-8251855) for that bug in JDK 16.

Solution
--------

Deprecate for removal the accidentally added constructor.

Specification
-------------
javax.swing.plaf.basic.BasicSliderUI

      
         /**
          * Constructs a {@code BasicSliderUI}.
    +     * @deprecated This constructor was exposed erroneously and will be removed in a future release.
    +     *             Use {@link #BasicSliderUI(JSlider)} instead.
          */
    +    @Deprecated(since = "23", forRemoval = true)
         public BasicSliderUI() {}




Comments
Moving to Approved.
24-06-2024