Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8345648

Remove no-arg constructor BasicSliderUI()

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 25
    • client-libs
    • None
    • source
    • minimal
    • removal of deprecated method
    • Java API
    • SE

      Summary

      The no-arg public constructor of javax.swing.plaf.basic.BasicSliderUI was deprecated in JDK 23 and marked for removal in a next release which is being done now.

      Problem

      The no-arg constructor BasicSliderUI() was added by mistake under JDK-8250852 and the new constructor appears in CSR JDK-8251855 for that bug in JDK 16.

      Solution

      Remove the now deprecated accidentally added constructor.

      Specification

      javax.swing.plaf.basic.BasicSliderUI.java

      -    /**
      -     * Constructs a {@code BasicSliderUI}.
      -     *
      -     * @since 16
      -     * @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() {}

            psadhukhan Prasanta Sadhukhan
            aivanov Alexey Ivanov
            Alexander Zvegintsev, Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: