-
Bug
-
Resolution: Fixed
-
P3
-
jfx15
-
None
During the review of JDK-8251353 we discovered that two of the classes without explicit constructors were not meant to have publicly visible constructors.
javafx.css.Selector
javafx.css.converter.ShapeConverter
We should remove them (by changing the constructors to package-scope or private) over the course of two releases as follows:
1. Deprecate the constructors for removal in JavaFX 16
2. Remove the public constructors, replacing them with package-scope (in the case of Selector) or private (in the case of ShapeConverter). Since ShapeConverter is not meant to be subclassed at all, even internally, we can consider making that class final at the same time.
This will need a CSR.
javafx.css.Selector
javafx.css.converter.ShapeConverter
We should remove them (by changing the constructors to package-scope or private) over the course of two releases as follows:
1. Deprecate the constructors for removal in JavaFX 16
2. Remove the public constructors, replacing them with package-scope (in the case of Selector) or private (in the case of ShapeConverter). Since ShapeConverter is not meant to be subclassed at all, even internally, we can consider making that class final at the same time.
This will need a CSR.
- blocks
-
JDK-8252783 Remove the css Selector and ShapeConverter constructors
- Resolved
-
JDK-8250558 ☂ Many JavaFX classes have implicit no-arg constructors
- Resolved
- csr for
-
JDK-8252462 Deprecate for removal css Selector and ShapeConverter constructors
- Closed
- relates to
-
JDK-8252782 Enable javac lint option: missing-explicit-ctor
- Closed
-
JDK-8251353 Many javafx scenegraph classes have implicit no-arg constructors
- Resolved
(2 links to)