JDK-8349406 : Release Note: Removal of No-Argument Constructor for BasicSliderUI()
  • Type: Sub-task
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 25
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-02-05
  • Updated: 2025-06-11
  • Resolved: 2025-06-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 25
25Fixed
Description
Several hundred classes in the `java.desktop` module used to rely on default constructors as part of their public API. However, many were lacking a default constructor, so they were added to those classes in JDK-8250852.

In that regard, a `BasicSliderUI` default constructor was added in JDK16, missing the fact that there was already another pre-existing constructor `BasicSliderUI(JSlider b)` in it, so there was no need of another constructor.

So, it was deprecated in JDK23 and is now being removed in JDK25.