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: Delivered
  • Submitted: 2025-02-05
  • Updated: 2025-06-16
  • Resolved: 2025-06-16
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
25Resolved
Description
Several hundred classes in the `java.desktop` module used to rely on default constructors as part of their public API. Explicit constructors were added to these classes in JDK-8250852.

As a result, a no-argument constructor, `BasicSliderUI()`, for the `BasicSliderUI` class was added in JDK 16. This missed that there already was a constructor `BasicSliderUI(JSlider b)`. Thus, there was no need for another constructor.

The `BasicSliderUI()` constructor was deprecated in JDK 23 and is removed in JDK 25.