JDK-8251352 : Many javafx.base classes have implicit no-arg constructors
  • Type: Bug
  • Component: javafx
  • Sub-Component: base
  • Affected Version: openjfx15
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-08-10
  • Updated: 2020-08-18
  • Resolved: 2020-08-18
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 :  
Description
The following classes in the javafx.base module have implicit no-arg constructors,  which are added by javac, and show up in the API docs without any documentation associated with it:

javafx.beans.property.DoubleProperty
javafx.beans.property.FloatProperty
javafx.beans.property.IntegerProperty
javafx.beans.property.ListProperty
javafx.beans.property.LongProperty
javafx.beans.property.MapProperty
javafx.beans.property.ObjectProperty
javafx.beans.property.ReadOnlyBooleanPropertyBase
javafx.beans.property.ReadOnlyDoublePropertyBase
javafx.beans.property.ReadOnlyFloatPropertyBase
javafx.beans.property.ReadOnlyIntegerPropertyBase
javafx.beans.property.ReadOnlyListPropertyBase
javafx.beans.property.ReadOnlyLongPropertyBase
javafx.beans.property.ReadOnlyMapPropertyBase
javafx.beans.property.ReadOnlyObjectPropertyBase
javafx.beans.property.ReadOnlySetPropertyBase
javafx.beans.property.ReadOnlyStringPropertyBase
javafx.beans.property.SetProperty
javafx.beans.property.StringProperty
javafx.beans.value.ObservableValueBase
javafx.collections.ModifiableObservableListBase
javafx.collections.ObservableArrayBase
javafx.collections.ObservableListBase
javafx.util.StringConverter
javafx.util.converter.BigDecimalStringConverter
javafx.util.converter.BigIntegerStringConverter
javafx.util.converter.BooleanStringConverter
javafx.util.converter.ByteStringConverter
javafx.util.converter.CharacterStringConverter
javafx.util.converter.DefaultStringConverter
javafx.util.converter.DoubleStringConverter
javafx.util.converter.FloatStringConverter
javafx.util.converter.IntegerStringConverter
javafx.util.converter.LongStringConverter
javafx.util.converter.ShortStringConverter

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: b25ffc7a Author: Bhawesh Choudhary <bchoudhary@openjdk.org> Committer: Kevin Rushforth <kcr@openjdk.org> Date: 2020-08-18 12:35:50 +0000 URL: https://git.openjdk.java.net/jfx/commit/b25ffc7a
18-08-2020