JDK-8251353 : Many javafx scenegraph classes have implicit no-arg constructors
  • Type: Bug
  • Component: javafx
  • Sub-Component: scenegraph
  • Affected Version: openjfx15
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-08-10
  • Updated: 2020-08-28
  • Resolved: 2020-08-28
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.
Other
openjfx16Fixed
Related Reports
Blocks :  
Cloners :  
Relates :  
Description
The following scenegraph classes in the javafx.graphics and javafx.controls modules have implicit no-arg constructors,  which are added by javac, and show up in the API docs without any documentation associated with it:

javafx.application.Preloader
javafx.concurrent.ScheduledService
javafx.css.PseudoClass
javafx.css.Selector
javafx.css.StyleConverter
javafx.css.StyleConverter.StringStore
javafx.css.converter.ShapeConverter
javafx.scene.control.TableFocusModel
javafx.scene.control.TableSelectionModel
javafx.scene.input.ClipboardContent
javafx.scene.shape.PathElement
javafx.scene.transform.Transform
javafx.stage.DirectoryChooser
javafx.stage.FileChooser
javafx.stage.Popup

The fix is to add an explicit constructor with minimal documentation.

This is part of a larger effort to eliminate such classes. See JDK-8250558.
Comments
Changeset: 23ad8f40 Author: Bhawesh Choudhary <bchoudhary@openjdk.org> Committer: Nir Lisker <nlisker@openjdk.org> Date: 2020-08-28 07:24:58 +0000 URL: https://git.openjdk.java.net/jfx/commit/23ad8f40
28-08-2020